CryptoLib class
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
-
base64UrlBinHash(
Uint8List hash) → String - Convert binary hash bytes into a base64url encoded string with the padding stripped off.
-
blakeHash(
String message) → String -
blakeHashToBinary(
String message) → Uint8List - Blake hashes the message and returns the raw binary data.
-
hashAndSign(
{required String message, required String privateKey}) → SignAndHash - Hashes the message and signs it with the private key. Returns the hash and signature.
-
signHash(
{required String hash, required String privateKey}) → String - Decodes the base64 url encoded hash string and signs it with the private key.
-
signHashBytes(
{required Uint8List hash, required String privateKey}) → String - Sigsn the hash bytes with the private key
-
stripPadding(
String hash) → String - Strips the padding from the base64url encoded string.