Encryption
Methods
encrypt
encrypt(text: string, key: string)Parameters
Return type
Examples
// Encrypts a string using the AES algorithm:
Encryption.encrypt('my secret text', 'my secret key')encrypt(text: string, key: string)// Encrypts a string using the AES algorithm:
Encryption.encrypt('my secret text', 'my secret key')decrypt(text: string, key: string)// Decrypts a string using the AES algorithm:
Encryption.decrypt('my encrypted text', 'my secret key')