klyn.cryptography.AESCipherText.fromMap
method
public static fromMap(value as Map<String, Object>) as AESCipherText:
DescriptionRebuilds an AES payload from a serialized map.
import klyn.cryptography
key = AESKeyGenerator().generateKey()
encrypted = Cipher.aesEncrypt("demo", key)
copy = AESCipherText.fromMap(encrypted.toMap())
print(copy.cipherTextBase64)
ReturnsStructured AES payload. ```klyn import klyn.cryptography key = AESKeyGenerator().generateKey() encrypted = Cipher.aesEncrypt("demo", key) copy = AESCipherText.fromMap(encrypted.toMap()) print(copy.cipherTextBase64) ```