klyn.cryptography.AESCipherText.AESCipherText
constructor
public AESCipherText(mode as String, transformation as String, keySizeBits as Int, ivBase64 as String, ivHex as String, cipherTextBase64 as String, cipherTextHex as String, tagBase64 as String, tagHex as String):
Description
Creates an AES payload object.
import klyn.cryptography

payload = AESCipherText("GCM", "aes-256-gcm", 256, "", "", "", "", "", "")
print(payload.mode)
Parameters
  • mode AES mode, for example `GCM`, `CBC` or `CTR`.
  • transformation Concrete cipher transformation.
  • keySizeBits AES key size in bits.
  • ivBase64 Initialization vector in Base64.
  • ivHex Initialization vector in hexadecimal.
  • cipherTextBase64 Ciphertext in Base64.
  • cipherTextHex Ciphertext in hexadecimal.
  • tagBase64 Authentication tag in Base64.
  • tagHex Authentication tag in hexadecimal. ```klyn import klyn.cryptography payload = AESCipherText("GCM", "aes-256-gcm", 256, "", "", "", "", "", "") print(payload.mode) ```