klyn.cryptography.AESCipherText.fromMap
method

    public static fromMap(value as Map<String, Object>) as AESCipherText:

Description

Rebuilds an AES payload from a serialized map.

Parameters

- value Serialized payload map.

Returns

Structured AES payload. ```klyn import klyn.cryptography key = AESKeyGenerator().generateKey() encrypted = Cipher.aesEncrypt("demo", key) copy = AESCipherText.fromMap(encrypted.toMap()) print(copy.cipherTextBase64)` ``