Skip to main content

Module import

Module import 

Source
Expand description

Readers for the files other password managers export (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §8.4).

Each reader turns a file’s bytes into Incoming entries (the same shape a .vault file holds) and says what it couldn’t bring in and why. They’re attack surface (§8.7): they run on files a person was given, so each caps what it reads and takes no value as trusted. Nothing here touches the Vault: transfer::inspect stages what they return, and the person previews it.

Everything here is a plaintext export (the encrypted sources, KeePass and password-protected exports, come with their own passwords); Imported says so, and the pane then offers to delete the file.

Re-exports§

pub use kdbx::MAX_ARGON_ITERATIONS;
pub use kdbx::MAX_ARGON_MEMORY;
pub use kdbx::MAX_ARGON_PARALLELISM;
pub use kdbx::MAX_KEY_FILE;

Modules§

bitwarden
Bitwarden’s (and Vaultwarden’s) unencrypted JSON export: logins with their one-time-code seeds, cards, secure notes, and the numbers an identity holds (spec §8.4). A password-protected export is refused with how to get an unencrypted one: its decryption isn’t built yet.
bitwarden_encrypted
Bitwarden’s password-protected JSON export (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §8.4). The file is
dashlane
Dashlane’s CSV export (spec §8.4). It is a zip of several CSVs, one for each kind of item (credentials, payments, IDs, personal information, secure notes), and each is imported on its own: AgentMux tells them apart by their columns, not their names. Written from the format as Bitwarden’s importer reads it, not from an export Dashlane made.
enpass
Enpass’s exports (spec §8.4): its JSON (folders and items whose template_type says what they are and whose fields carry the values) and its CSV (a Title,Field,Value,… table whose rows hold a title, then pairs of a field’s name and value, then perhaps a note). Written from the format as Bitwarden’s open-source importer reads it, not from an export Enpass made.
env
.env files and shell export lines: each NAME=value is an API key, with the variable name as its label and suggested environment variable (spec §8.4).
kdbx
KeePass .kdbx databases (KeePass, KeePassXC, KeePassDX, KeeWeb, Strongbox; KDBX 3.1 and 4), opened with the person’s master password (spec §8.4).
keeper
Keeper’s CSV export (spec §8.4). It has no header row: each row is folder, title, login, password, website, notes, shared folder, then custom fields as pairs of a name and a value, and a one-time code is the field TFC:Keeper. Written from the format as Bitwarden’s importer reads it, not from an export Keeper made.
logins
The CSV files password managers and browsers export: LastPass, 1Password, Chrome, Edge, Brave, Firefox, Safari and Apple Passwords all write a table of logins (spec §8.4), and LastPass also writes its secure notes into it. A CSV no reader knows is imported with a column mapping the person chooses.
nordpass
NordPass’s CSV export (spec §8.4): a header row, and a type column that says whether a row is a login (password), a card (credit_card), a note or an identity. Written from the format as Bitwarden’s importer reads it, not from an export NordPass made.
onepux
1Password’s .1pux export: a zip whose export.data is JSON of accounts, vaults and items (spec §8.4). It holds every secret unencrypted.
proton
Proton Pass’s exports (spec §8.4): the zip it makes (Proton Pass/data.json beside the attachments), its JSON on its own, and its CSV (logins; a card or an identity carries its fields as JSON in the note column). Written from Proton’s own open-source export and import code, not from an export the service made. A passphrase-protected export (data.pgp) is refused with how to export again.
roboform
RoboForm’s CSV export (spec §8.4): Name, Url, MatchUrl, Login, Pwd, Note, Folder, RfFieldsV2, where each extra field of a login is one more cell after the last column, written label,,,type,value. A safe note is a row with only a name and a note. Written from the format as Bitwarden’s importer reads it, not from an export RoboForm made.
shared
What the readers of the second wave of services share (Dashlane, Keeper, NordPass, RoboForm, Zoho Vault, and the others of spec §12 P6): reading a table, and making entries the way the first wave does. A login’s notes and custom fields can hold recovery codes, so they are sealed in a note of their own; a folder becomes a tag; a row with nothing to keep is listed as skipped with the reason.
sticky
Sticky Password’s XML export (spec §8.4): root > Database with its Logins (a username and a password each), its Accounts (the title, address, notes and group of a sign-in, linked to its login by SourceLoginID) and its Groups (folders, which nest). Written from the format as Bitwarden’s open-source importer reads it, not from an export Sticky Password made. Only the logins are read; what else the export may hold (memos, bank cards) is not.
zoho
Zoho Vault’s CSV export (spec §8.4): Password Name, Description, Password URL, SecretData, Notes, CustomData, Tags, Classification, Favorite, TOTP, Folder Name. The username and password are not columns: they sit in SecretData as Key:Value lines. Written from the format as Bitwarden’s importer reads it, not from an export Zoho made.

Structs§

Imported
What a reader found.
Incoming
An entry as a file holds it, before it is checked against its kind.
Mapping
Which column of a CSV is what, chosen by the person for a file no reader knows.
MappingNeeded
A CSV no reader recognised: its columns, for the person to say which is which.

Enums§

ReadError
Source
Where an import came from, for the preview.

Constants§

MAX_ITEMS
The most rows or items one file may hold (§8.7).

Functions§

read
Reads an export that needs no password, finding out what it is from its contents.
read_keyed
read_with, and the key file a KeePass database may need as well as, or instead of, its password.
read_with
read, with the password an encrypted database (KeePass) needs.