Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2fbe8b70cd
Fetching contributors…

Cannot retrieve contributors at this time

executable file 14 lines (11 sloc) 0.218 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh

PWFILE=$HOME/Dropbox/sec/passwd.gpg
what="$1"
echo -n "Password: "
stty -echo
read password
stty echo


(
    gpg --decrypt "$PWFILE"
    echo "$what: $password"
) | gpg --encrypt --armor | sponge "$PWFILE"
Something went wrong with that request. Please try again.