hide alias to avoid mistakes
This commit is contained in:
parent
a674c10ba2
commit
0c0738cf32
@ -7,9 +7,8 @@
|
|||||||
#read -s -p "Secret: " secret
|
#read -s -p "Secret: " secret
|
||||||
|
|
||||||
# GUI
|
# GUI
|
||||||
pair="$(zenity --password --username --title="Password Calculator" 2> /dev/null)"
|
alias_="$(zenity --password --title="Password Calculator - Alias" 2> /dev/null)"
|
||||||
alias_="${pair%|*}"
|
secret="$(zenity --password --title="Password Calculator - Secret" 2> /dev/null)"
|
||||||
secret="${pair#*|}"
|
|
||||||
|
|
||||||
pass="$(echo -n "$secret$alias_" | shasum | sed 's/../\\\\x&/g' | xargs echo -e | base64 | colrm 17)"
|
pass="$(echo -n "$secret$alias_" | shasum | sed 's/../\\\\x&/g' | xargs echo -e | base64 | colrm 17)"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user