CryptoUtils class

Inheritance

Constructors

CryptoUtils()

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

decodeTypeByte(Uint8List byte) int
override
decodeTypeTwoEnvelope({required String message}) String
override
decrypt(String symKey, String encoded) Future<String>
override
deriveSymKey(String privKeyA, String pubKeyB) Future<String>
override
deserialize(String encoded) EncodingParams
override
encodeTypeByte(int type) Uint8List
override
encodeTypeTwoEnvelope({required String message}) String
override
encrypt(String message, String symKey, {int? type, String? iv, String? senderPublicKey}) Future<String>
override
generateKeyPair() CryptoKeyPair
override
generateRandomBytes32() String
override
hashKey(String key) String
override
hashMessage(String message) String
override
isTypeOneEnvelope(EncodingValidation result) bool
override
isTypeTwoEnvelope(EncodingValidation result) bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
randomBytes(int length) Uint8List
override
serialize(int type, Uint8List sealed, Uint8List iv, {Uint8List? senderPublicKey}) String
override
toString() String
A string representation of this object.
inherited
validateDecoding(String encoded, {String? receiverPublicKey}) EncodingValidation
override
validateEncoding({int? type, String? senderPublicKey, String? receiverPublicKey}) EncodingValidation
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

IV_LENGTH → const int
KEY_LENGTH → const int
TYPE_LENGTH → const int