decrypt property
Future
get
decrypt
Asynchronously decrypts the encryptedValue.
Checks if the key exists in the SharedPreferences and then decrypts the value.
Implementation
Future<dynamic> get decrypt async {
bool isEncrypted = await SharedPreferencesWrapper.mapContainsKey(
EncryptionConstants.encryptionMapKey, accessKey);
if (isEncrypted) {
return aesDecrypt(encryptionKey, Encrypted.fromBase64(encryptedValue));
}
return null;
}