cse_8.py 156 B

12345
  1. def encrypt_gcm(aes_key, content):
  2. iv = os.urandom(12)
  3. aesgcm = AESGCM(aes_key)
  4. result = aesgcm.encrypt(iv, content, None)
  5. return result, iv