ICryptoUtils class abstract

Implementers

Constructors

ICryptoUtils()

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

Operators

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