pwcalc - add terminal version for non-x environment
This commit is contained in:
parent
8e79b90080
commit
135226b7ad
1 changed files with 10 additions and 0 deletions
10
local/bin/twpcalc.sh
Executable file
10
local/bin/twpcalc.sh
Executable 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue