ShieldKey class

Helpers for generating and encoding AES‑256 keys.

Constructors

ShieldKey()

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

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.
inherited

Static Methods

fromBase64(String base64Key) Uint8List
Decodes a base64 string into key bytes.
generate({int lengthBytes = 32}) Uint8List
Generates a random 32‑byte AES‑256 key.
toBase64(Uint8List keyBytes) String
Encodes key bytes as base64.