hide alias to avoid mistakes

This commit is contained in:
Felix Van der Jeugt 2017-10-30 23:21:19 +01:00
parent a674c10ba2
commit 0c0738cf32
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -7,9 +7,8 @@
#read -s -p "Secret: " secret
# GUI
pair="$(zenity --password --username --title="Password Calculator" 2> /dev/null)"
alias_="${pair%|*}"
secret="${pair#*|}"
alias_="$(zenity --password --title="Password Calculator - Alias" 2> /dev/null)"
secret="$(zenity --password --title="Password Calculator - Secret" 2> /dev/null)"
pass="$(echo -n "$secret$alias_" | shasum | sed 's/../\\\\x&/g' | xargs echo -e | base64 | colrm 17)"