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 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 used to unlock a rehydrated client.

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.