DataEncryptionKey class

An encryption key intended for use in Aes/Symmetric key encryption

Implemented types

Constructors

DataEncryptionKey.generate(int byteLength)
Create a new random data encryption key
DataEncryptionKey.loadFromBytes(List<int> bytes)
Convert raw key bytes into a DataEncryptionKey
DataEncryptionKey.loadFromSerialized(String base64)
Convert a key encoded as base64 from serialize into a DataEncryptionKey

Properties

bytes List<int>
The raw key
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey → SecretKey
The key in a format understood by the cryptography library
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() String
Encode a key in a human-readable and url-safe format. Can be reloaded with DataEncryptionKey.loadFromSerialized
toString() String
A string representation of this object.
inherited

Operators

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