Box class abstract

A meta class that provides access to all libsodium box APIs.

This class provides the dart interface for the crypto operations documented in https://libsodium.gitbook.io/doc/public-key_cryptography/authenticated_encryption and https://libsodium.gitbook.io/doc/public-key_cryptography/sealed_boxes. Please refer to that documentation for more details about these APIs.

Properties

hashCode int
The hash code for this object.
no setterinherited
macBytes int
Provides crypto_box_MACBYTES.
no setter
nonceBytes int
Provides crypto_box_NONCEBYTES.
no setter
publicKeyBytes int
Provides crypto_box_PUBLICKEYBYTES.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sealBytes int
Provides crypto_box_SEALBYTES.
no setter
secretKeyBytes int
Provides crypto_box_SECRETKEYBYTES.
no setter
seedBytes int
Provides crypto_box_SEEDBYTES.
no setter

Methods

detached({required Uint8List message, required Uint8List nonce, required Uint8List publicKey, required SecureKey secretKey}) DetachedCipherResult
Provides crypto_box_detached.
easy({required Uint8List message, required Uint8List nonce, required Uint8List publicKey, required SecureKey secretKey}) Uint8List
Provides crypto_box_easy.
keyPair() KeyPair
Provides crypto_box_keypair.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDetached({required Uint8List cipherText, required Uint8List mac, required Uint8List nonce, required Uint8List publicKey, required SecureKey secretKey}) Uint8List
Provides crypto_box_open_detached.
openEasy({required Uint8List cipherText, required Uint8List nonce, required Uint8List publicKey, required SecureKey secretKey}) Uint8List
Provides crypto_box_open_easy.
precalculate({required Uint8List publicKey, required SecureKey secretKey}) PrecalculatedBox
Provides crypto_box_beforenm.
seal({required Uint8List message, required Uint8List publicKey}) Uint8List
Provides crypto_box_seal.
sealOpen({required Uint8List cipherText, required Uint8List publicKey, required SecureKey secretKey}) Uint8List
Provides crypto_box_seal_open.
seedKeyPair(SecureKey seed) KeyPair
Provides crypto_box_seed_keypair.
toString() String
A string representation of this object.
inherited

Operators

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