You are not logged in.

#1 2022-11-07 05:47:33

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

[dissolved] Exporting chromium passwords to pass securely

I am trying to switch to pass for password management. Until now, I've been using firefox and chromium (and equivalents on Android) and bits and pieces. However, I'm particularly unhappy having them in chromium.

I used firefox-decrypt (from AUR) to transfer passwords from firefox directly into pass. This seems to have worked well. However, I can't find anything similar for chromium. I know I can export them to a file, but this will then be in clear text. I still think that's better than keeping them in chromium, since it will only be temporary, but it isn't ideal and I don't know whether the format will lend itself to importation into pass.

I thought I could save the file to /tmp, but I don't know if that is better or worse than writing it to disk, especially with swap.

Or I could create some kind of encrypted container.

But is there a more straightforward way to accomplish this securely?

Last edited by cfr (2022-11-07 21:06:38)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#2 2022-11-07 06:34:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [dissolved] Exporting chromium passwords to pass securely

I don't see any way to do this programmatically (but I didn't look too hard). You could try piping Chromium's output through an encryption step, but you'll still have to decrypt it to create the files in pass...

Or, mount a USB drive, export the passwords to that, add them to pass, and then dd the drive before hitting it repeatedly with a sledgehammer.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-11-07 07:56:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,210

Re: [dissolved] Exporting chromium passwords to pass securely

Does chromium ask you for a master password when it starts?

Online

#4 2022-11-07 18:08:14

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: [dissolved] Exporting chromium passwords to pass securely

seth wrote:

Does chromium ask you for a master password when it starts?

No. That's another reason I'm less than happy keeping passwords in it.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2022-11-07 20:09:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,210

Re: [dissolved] Exporting chromium passwords to pass securely

But you're concerned about writing them into a temporary file?
Think about that…

Online

#6 2022-11-07 20:53:10

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: [dissolved] Exporting chromium passwords to pass securely

seth wrote:

But you're concerned about writing them into a temporary file?
Think about that…

Well, I'm *more* concerned about leaving them in chromium.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2022-11-07 20:57:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,210

Re: [dissolved] Exporting chromium passwords to pass securely

The point is that the passwords are currently de-facto stored clear-text on your disk. No matter how chromium might obfuscate that, there's no external information required to access their clear text.
I'd really not waste too many worries about having them in a tmpfs file for a while because of that.

Online

#8 2022-11-07 21:06:12

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: [dissolved] Exporting chromium passwords to pass securely

seth wrote:

The point is that the passwords are currently de-facto stored clear-text on your disk. No matter how chromium might obfuscate that, there's no external information required to access their clear text.
I'd really not waste too many worries about having them in a tmpfs file for a while because of that.

Oh, I see. OK, thanks. I was inclined to think it was much better to do it that way than leave them, but I wasn't sure chromium wasn't doing something to protect them which would make exporting them that way stupid. Mostly because when I went to export them, chromium brought up a big warning about the exported file being clear text, which suggested they weren't clear text at the moment.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB