EncryptionAdapter class abstract
Abstract adapter for platform-specific encryption.
Implementations should use secure encryption primitives appropriate
for the target platform (e.g., flutter_secure_storage or
pointycastle).
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decrypt(
String ciphertext) → Future< String> -
Decrypt a base64-encoded
ciphertextand return the plaintext. -
encrypt(
String plaintext) → Future< String> -
Encrypt
plaintextand return a base64-encoded ciphertext. -
isAvailable(
) → bool - Whether the encryption backend is available and initialized.
-
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