marcwebbie / passpie

:closed_lock_with_key: Multiplatform command-line password manager
http://passpie.readthedocs.org/
MIT License
921 stars 68 forks source link

[Feature request] Destroy clipboard password after n seconds #71

Closed wesjon closed 8 years ago

wesjon commented 9 years ago

I feel like having to clear my password from the clipboard after using the command passpie copy [credential] is a little inconvenient.

Taking in consideration most users will need their password on the clipboard for a short period of time just to fill a login form I would like to suggest a feature aiming convenience and security.

  1. Add a default timeout to the passpie copy command configurable through global settings.
  2. Add a parameter destroy to passpie copy that clears the clipboard after n seconds

In my head it would work this way:

passpie copy Google --destroy 10 passpie: copied your password to clipboard passpie: clearing clipboard in 10 seconds passpie: clipboard cleared

marcwebbie commented 9 years ago

@wesjon Thanks for opening the feature request. It sounds like a great feature to have.

I was thinking about something like this:

passpie copy foo@bar --clear 10

Also having something configurable on .passpierc:

- copy_timeout: 10

0 means it won't be cleared, anything positive should have set clear timeout in seconds.

wesjon commented 9 years ago

I agree - clear sounds more appropriate. destroy may cause some confusion.