EncryptionOptions class
A class that represents encryption options for the cache.
Constructors
- EncryptionOptions.new({EncryptionAlgorithm algorithm = EncryptionAlgorithm.aes256, required String key})
-
Creates a new instance of EncryptionOptions.
const
- EncryptionOptions.aes256({required String key})
-
Creates a new instance of EncryptionOptions with AES-256 encryption.
factory
- EncryptionOptions.fromPassword({required String password, required String salt, EncryptionAlgorithm algorithm = EncryptionAlgorithm.aes256, int iterations = 10000})
-
Creates a new instance of EncryptionOptions with a key derived from a password.
factory
- EncryptionOptions.withRandomKey({EncryptionAlgorithm algorithm = EncryptionAlgorithm.aes256})
-
Creates a new instance of EncryptionOptions with a randomly generated key.
factory
Properties
- algorithm → EncryptionAlgorithm
-
The encryption algorithm to use.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
The encryption key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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