CryptoStream class

Generate deterministic streams of random data based off a secret key and random nonce.

Constructors

CryptoStream()

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

randomKey() Uint8List
Generates a random key for use with crypto stream.
randomNonce() Uint8List
Generates a random nonce for use with crypto stream.
stream(int clen, Uint8List nonce, Uint8List key) Uint8List
Generates pseudo random bytes for given nonce and secret key.
xor(Uint8List value, Uint8List nonce, Uint8List key) Uint8List
Encrypts specified value using a nonce and a secret key.
xorString(String value, Uint8List nonce, Uint8List key) Uint8List
Encrypts specified string value using a nonce and a secret key.