encrypt property

dynamic get encrypt

Encrypts the value using the Fernet encryption algorithm.

Returns a Future that completes with the encrypted value as a Base64-encoded string.

Implementation

get encrypt async {
  var encryptedVal = await fernetEncrypt(encryptionKey, value);
  return encryptedVal;
}