3 Commits

Author SHA1 Message Date
800feb1d37 Export can be sealed with a separate password; import accepts file with a different password
- exportSelected(groupIds, vaultKey, exportPassword=''): plain JSON export unchanged when
  no export password; when one is set, re-keys each entry's password to a key derived from
  the export password and AES-256-GCM-seals the entire payload (titles/usernames/notes
  protected too). Returns a { format: 'encrypted-export', salt, data } envelope.
- importAll() detects sealed exports and treats the supplied password as the EXPORT password,
  so it may differ from any vault's master password. Wrong password rejects import instead of
  silently skipping entries.
- ImportExport.svelte: optional 'separate password' field in the export dialog; import dialog's
  field reworded as a generic file password covering both plain and sealed files.
- Tests for sealed export/import round-trip incl. wrong-password & missing-password rejects.
2026-08-26 23:38:25 +00:00
dc7c29b7ce Don't forget about ungrouped entries when selecting export groups 2026-05-18 02:11:05 +00:00
fb8df00e91 Add tests and trim down inconsistencies in the code. 2026-05-17 22:08:36 +00:00