CryptoEngine class abstract

Factory for cryptographic algorithm instances.

Subclass to provide alternative implementations (e.g. native FFI).

Implementers

Constructors

CryptoEngine()

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

createAes256({required Uint8List key}) → Aes256
Creates an Aes256 cipher from a 32-byte key.
createArgon2({Argon2Type type, Argon2Version version, required int parallelism, required int memorySizeKB, required int iterations, required List<int> salt}) → Argon2
Creates an Argon2 instance for native or Dart-backed hashing.
createChaCha20({required Uint8List key}) → ChaCha20
Creates a ChaCha20 cipher from a 32-byte key.
createSalsa20({required Uint8List key}) → Salsa20
Creates a Salsa20 cipher from a 32-byte key.
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