configuration/local/bin/twpcalc.sh

11 lines
193 B
Bash
Raw Normal View History

#!/bin/bash
# Reading input {{{
# Terminal
read -p "Alias: " alias_
read -s -p "Secret: " secret
2016-01-10 19:55:58 +01:00
echo -n "$secret$alias_" | shasum | sed 's/../\\\\x&/g' | xargs echo -e | base64 | colrm 17