4 ms·
I use a shell alias: alias getpass='_getpass() { _g=$(printf "sauce%s" "${*}" | md5sum | openssl enc -base64 | cut -c1-16); printf "%s" "${_g}"|xclip -selectio
by chilicuil 12y ago
I use a shell alias:
alias getpass='_getpass() { _g=$(printf "sauce%s" "${*}" | md5sum | openssl enc -base64 | cut -c1-16); printf "%s" "${_g}"|xclip -selection clipboard 2>/dev/null|| printf "%s\\n" "${_g}"; }; _getpass'
like this:
$ getpass mail@domain.lts
$ getpass user@domain.lts #for ssh logins
- eli 12y agoSeems like that would be pretty annoying for passwords that must be changed periodically (or even just occasionally).
- chilicuil 12y agoyep, it doesn't allow changing passwords because of its fixed nature. I use it for my personal needs
- ntucker 12y agoEasy enough to include a version number as another arg with the identifier, and include that in the hash. Then all you have to do is keep track of what version each of your passwords is on, which is not sensitive information and could be stored in greppable plaintext.