passforios icon indicating copy to clipboard operation
passforios copied to clipboard

Feature request: password on "password:" line

Open jakajancar opened this issue 5 years ago • 3 comments

Instead of having passwords on the first line, one other commonly supported pattern is to have them on a line starting with "password:". I prefer this, because the files are then valid YAML.

It would be great if there was an option that newly created files could follow this format.

jakajancar avatar Oct 02 '19 13:10 jakajancar

Browserpass now assumes this:

"Password must be defined on a line starting with password:, pass: or secret: (case-insensitive), and if all of these are absent, the first line in the password entry file is considered to be a password."

We may implement this is the future.

If anyone is interested in this, pull requests are always welcomed!

yishilin14 avatar Oct 08 '19 14:10 yishilin14

Backward compatibility would be my major concern. If someone has an entry like

first_line
secret: xxx

, the displayed password would be different.

Let's keep the discussion open for a while.

yishilin14 avatar Oct 08 '19 14:10 yishilin14

Noticed this discussion sitting open, think this is pretty important especially with gopass now adding mime types to the first line of new password files.

For the sake of backwards compatibility, could this potentially be done by checking if a password line exists, and if not then the first line is assumed to be the password?

matt-froggatt avatar Jan 10 '21 06:01 matt-froggatt