SealedBox class
Anonymously send messages to a recipient given its public key.
Constructors
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
-
open(
Uint8List cipher, KeyPair keys) → Uint8List - Decrypts the ciphertext using given keypair.
-
openString(
Uint8List cipher, KeyPair keys) → String - Decrypts the ciphertext using given keypair.
-
randomKeys(
) → KeyPair - Generates a random secret key and a corresponding public key.
-
seal(
Uint8List value, Uint8List publicKey) → Uint8List - Encrypts a value for a recipient having specified public key.
-
sealString(
String value, Uint8List publicKey) → Uint8List - Encrypts a string message for a recipient having specified public key.