pwcalc - add terminal version for non-x environment

This commit is contained in:
Felix Van der Jeugt 2015-08-27 06:34:48 +02:00
parent 8e79b90080
commit 135226b7ad

10
local/bin/twpcalc.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# Reading input {{{
# Terminal
read -p "Alias: " alias_
read -s -p "Secret: " secret
echo -n "$secret$alias_" | shasum | xxd -r -p | base64 | colrm 17