EncryptionService class Null safety

Abstract Encryption Service to be implemented by an encryption standard (such as AES-GCM or RSA)

Implementers

Constructors

EncryptionService()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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.
@Deprecated('use decryptSerializedStringWithKey() instead')
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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited