DataEncryptionKey class Null safety

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
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secretKey SecretKey
The key in a format understood by the cryptography library
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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