TWCryptoBox class

crypto_box encryption algorithms.

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

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

Static Methods

decryptEasy({required TWCryptoBoxSecretKey mySecret, required TWCryptoBoxPublicKey otherPubkey, required Uint8List encrypted}) Uint8List?
Decrypts box produced by TWCryptoBoxEncryptEasy. We assume a 24-byte nonce is prepended to the encrypted text in box.
encryptEasy({required TWCryptoBoxSecretKey mySecret, required TWCryptoBoxPublicKey otherPubkey, required Uint8List message}) Uint8List?
Encrypts message using my_secret and other_pubkey. The output will have a randomly generated nonce prepended to it. The output will be Overhead + 24 bytes longer than the original.