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

Parameter | Description
--- | ---
`value` | Serialized payload map.

Returns

Structured AES payload.

Example

    import klyn.cryptography

    key = AESKeyGenerator().generateKey()
    encrypted = Cipher.aesEncrypt("demo", key)
    copy = AESCipherText.fromMap(encrypted.toMap())
    print(copy.cipherTextBase64)