Encryption (deprecated)
Encryption.encrypt() and Encryption.decrypt() are deprecated.
Use the Crypto library instead.
Collection of encryption functions.
Methods
encrypt (deprecated)
Encrypts a string using the AES algorithm. Returns a base64 encoded string. The result is not deterministic.
Parameters
text string
The text to encrypt.
key string
The encryption key.
Return type
string
Examples
decrypt (deprecated)
Decrypts a string using the AES algorithm.
Parameters
text string
The text to decrypt.
key string
The encryption key.
Return type
string
Examples
Last updated