SecretBox class abstract
A meta class that provides access to all libsodium secretbox APIs.
This class provides the dart interface for the crypto operations documented in https://libsodium.gitbook.io/doc/secret-key_cryptography/secretbox. Please refer to that documentation for more details about these APIs.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyBytes → int
-
Provides crypto_secretbox_KEYBYTES.
no setter
- macBytes → int
-
Provides crypto_secretbox_MACBYTES.
no setter
- nonceBytes → int
-
Provides crypto_secretbox_NONCEBYTES.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detached(
{required Uint8List message, required Uint8List nonce, required SecureKey key}) → DetachedCipherResult - Provides crypto_secretbox_detached.
-
easy(
{required Uint8List message, required Uint8List nonce, required SecureKey key}) → Uint8List - Provides crypto_secretbox_easy.
-
keygen(
) → SecureKey - Provides crypto_secretbox_keygen.
-
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 SecureKey key}) → Uint8List - Provides crypto_secretbox_open_detached.
-
openEasy(
{required Uint8List cipherText, required Uint8List nonce, required SecureKey key}) → Uint8List - Provides crypto_secretbox_open_easy.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited