FernetDecryption class
A class to handle Fernet decryption for a given encrypted value and key.
Constructors
- FernetDecryption({required String encryptionKey, required String accessKey})
-
Constructs a FernetDecryption instance with the given
encryptionKeyandaccessKey.
Properties
- accessKey → String
-
The access key used to identify the encrypted value in shared preferences.
final
- decrypt → dynamic
-
Decrypts the encryptedValue using the Fernet decryption algorithm.
no setter
- encryptedValue ↔ dynamic
-
The encrypted value to be decrypted.
getter/setter pair
- encryptionKey → String
-
The encryption key used for decrypting the value.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fernetDecrypt(
String secretKey, Encrypted encryptedValue) → String -
Decrypts the given
encryptedValuewith the providedsecretKeyusing the Fernet decryption algorithm. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited