Skip to main content

Crate bitwarden_unlock

Crate bitwarden_unlock 

Source
Expand description

§Bitwarden Unlock

Contains the high-level unlock API used to rehydrate a locked client into an unlocked one, including session-key generation and unlocking by session key.

Underlying initialize_user_crypto_* primitives remain in bitwarden-core; this crate consumes them to keep the dependency direction one-way.

Modules§

session_key 🔒
unlock_client 🔒
Client for unlocking a rehydrated Bitwarden SDK client.

Structs§

SessionKey
A symmetric key that wraps the user key in the persisted state, allowing a rehydrated client to unlock without re-deriving the user key from a master password or other primary unlock factor.
UnlockClient
Client for unlocking and locking the vault in memory, and for minting session keys and unlocking the vault with one.

Enums§

UnlockError
Errors returned by UnlockClient::generate_session_key and UnlockClient::unlock.
UnlockMethod
The unlock factor passed to UnlockClient::unlock.

Constants§

UNIFFI_META_CONST_NAMESPACE_BITWARDEN_UNLOCK 🔒
Export namespace metadata.

Traits§

UnlockClientExt
Extension trait to add the unlock client to the main Bitwarden SDK client.