Encrypted class

Represents an encripted value.

Constructors

Encrypted(Uint8List _bytes)
Creates an Encrypted object from a Uint8List.
Encrypted.allZerosOfLength(int length)
Creates an Encrypted object of ALL ZEROS from a length. The key is ALL ZEROS - NOT CRYPTOGRAPHICALLY SECURE!
Encrypted.from64(String encoded)
Creates an Encrypted object from a Base64 string.
Encrypted.fromBase16(String encoded)
Creates an Encrypted object from a hexdecimal string.
Encrypted.fromBase64(String encoded)
Creates an Encrypted object from a Base64 string.
Encrypted.fromLength(int length)
Creates an Encrypted object from a length. The key is filled with length bytes generated by a Random.secure() generator
Encrypted.fromSecureRandom(int length)
Creates an Encrypted object from a length. The key is filled with length bytes generated by a Random.secure() generator
Encrypted.fromUtf8(String input)
Creates an Encrypted object from a UTF-8 string.

Properties

base16 String
Gets the Encrypted bytes as a Hexdecimal representation.
no setter
base64 String
Gets the Encrypted bytes as a Base64 representation.
no setter
bytes Uint8List
Gets the Encrypted bytes.
no setter
hashCode int
The hash code for this object.
no setteroverride
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.
override