EncryptionService class abstract
Abstract Encryption Service to be implemented by an encryption standard (such as AES-GCM or RSA)
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
-
decryptEncryptionResultWithKey(
EncryptionResult encryptionResult, EncryptionKey key) → Future< Uint8List> -
decrypts a EncryptionResult object obtained from encryptWithKey() using
key
, use this method to avoid unnescessary serialisation/de-serilaisation during decryption -
decryptSerializedStringWithKey(
String serialized, EncryptionKey key) → Future< Uint8List> -
decryptWithKey(
String serialized, EncryptionKey key) → Future< Uint8List> - Pass a string in Cryppo serialized encrypted format and a EncryptionKey (key type dependant on the scheme being used) to return binary decrypted data.
-
encryptWithKey(
List< int> data, EncryptionKey key) → Future<EncryptionResult> - Provided some binary data and a EncryptionKey (key type dependant on the encryption scheme being used) Return an EncryptionResult
-
encryptWithKeyAndArtefacts(
List< int> data, EncryptionKey key, EncryptionArtefacts artefacts) → Future<EncryptionResult> - Allows encryption with specified encryption artifacts (rather than generated ones).
-
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