decrypt property
dynamic
get
decrypt
Decrypts the encryptedValue using the Fernet decryption algorithm.
Returns a Future that completes with the decrypted value.
Implementation
get decrypt async {
dynamic descryptedVal;
bool isEncrypted = await SharedPreferencesWrapper.mapContainsKey(
EncryptionConstants.encryptionMapKey, accessKey);
if (isEncrypted) {
descryptedVal =
fernetDecrypt(encryptionKey, Encrypted.fromBase64(encryptedValue));
}
return descryptedVal;
}