DVAppKeyStore class abstract

Where the application key is kept.

The key is never in the bundle and never in pubspec.yaml: only PUBLIC_-prefixed values reach the generated environment, and a key that ships to every visitor encrypts nothing. A server-side framework can keep such a key in an environment file because it lives on a machine the operator controls; an application's store lives on the user's device, so the key has to come from somewhere the user's own OS protects.

Implementations bind to DPAPI, Keychain, libsecret, Android Keystore, or a non-extractable WebCrypto key. The in-memory implementation is for tests.

Constructors

DVAppKeyStore()

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

clear() → Future<void>
Removes the key. The store it protected becomes unreadable, which is survivable: it holds view state.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() → Future<Uint8List?>
The stored key, or null when none has been generated.
toString() → String
A string representation of this object.
inherited
write(Uint8List key) → Future<void>
Stores key, replacing any previous one.

Operators

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