Open r-maerz opened 5 months ago
Hello! Starting from the second question, all the parsing is happening in parseFields
function, in particular I think you are looking for this block:
For the first point, I'd love to avoid imposing specific rules for naming pass entries, could we instead recognize a new optional field inside the pass entry? For example totp-method: steam
or something like that?
It's also important to consider that a runtime dependency on openssl would be a hard sell, as we don't control the packaging and have to support a large variety of OS, including Windows and macOS...
Hello! Starting from the second question, all the parsing is happening in
parseFields
function, in particular I think you are looking for this block:For the first point, I'd love to avoid imposing specific rules for naming pass entries, could we instead recognize a new optional field inside the pass entry? For example
totp-method: steam
or something like that?
Thank you very much for this! I like the idea of an optional field a lot, because that will result in even fewer changes to existing app behavior. I will have a look at the code you quoted and try to wriggle my way through. My JavaScript is quite rusty.
Regarding the runtime dependency, this can actually be shipped in pure JavaScript - see for example crypto-browserify
- or via the Web Crypto API. No need to have openssl installed on the client itself.
Awesome! Looking forward to seeing what you come up with! 🥳
Hi,
I am the maintainer of pass-extension-totp which uses plain openssl to implement standard TOTP as well as Steam's custom algorithm. I would like to port my work to browserpass for it to become multi-plattform.
I see a number of benefits for browserpass and its users by doing this:
To get started, I had a look through your code and via #229 found my way to
background.js
as well ashelper.js
. What I still need info on is the following two questions:steam/accountname.gpg
Tagging @erayd as the original implementer of browserpass' OTP support in hopes they see this.
Kind regards, Robert