Sodium class abstract

A meta class that provides access to all toplevel libsodium API groups.

Implementers

Properties

crypto Crypto
An instance of Crypto.
no setter
hashCode int
The hash code for this object.
no setterinherited
randombytes Randombytes
An instance of Randombytes.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version SodiumVersion
Returns the version of the underlying libsodium implementation.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pad(Uint8List buf, int blocksize) Uint8List
Provides sodium_pad.
runIsolated<T>(SodiumIsolateCallback<T> callback, {List<SecureKey> secureKeys = const [], List<KeyPair> keyPairs = const []}) Future<T>
Runs the given callback with an isolate.
secureAlloc(int length) SecureKey
Allocates new memory for a SecureKey of length bytes.
secureCopy(Uint8List data) SecureKey
Allocates new memory for a SecureKey and copies the data from data.
secureRandom(int length) SecureKey
Allocates new memory for a SecureKey and fills it with length bytes of random data.
toString() String
A string representation of this object.
inherited
unpad(Uint8List buf, int blocksize) Uint8List
Provides sodium_unpad.

Operators

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