sure didn't expect this to depend on vim

This commit is contained in:
Felix Van der Jeugt 2015-12-30 10:29:56 +01:00
parent 9c142bd605
commit cb459c93a9

View File

@ -11,7 +11,7 @@ pair="$(zenity --password --username --title="Password Calculator")"
alias_="${pair%|*}"
secret="${pair#*|}"
pass="$(echo -n "$secret$alias_" | shasum | xxd -r -p | base64 | colrm 17)"
pass="$(echo -n "$secret$alias_" | shasum | sed 's/../\\\\x&/g' | xargs echo -e | base64 | colrm 17)"
echo -n "$pass" | xclip
echo -n "$pass" | xclip -sel c