CryptographyBackend class

package:cryptography — uses the host app's Cryptography.instance, so it picks up FlutterCryptography (hardware) when enabled, and BrowserCryptography (WebCrypto) on web; otherwise pure-Dart.

Implemented types

Constructors

CryptographyBackend()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decryptData(Uint8List key, Uint8List data) Future<Uint8List>
Decrypts iv(12) | ciphertext | tag(16); throws on auth failure.
override
encryptData(Uint8List key, Uint8List data) Future<Uint8List>
Returns iv(12) | ciphertext | tag(16).
override
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