Advertisement
Guest User

Untitled

a guest
Nov 20th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. read -s -p 'Enter your password: ' PW1
  2. echo
  3. read -s -p 'Enter your password (again): ' PW2
  4. echo
  5. if [ $PW1 != $PW2 ]; then
  6.         echo "Passwords don't match"
  7.         exit 1
  8. fi
  9. FV=`echo -n $PW1 $1`
  10. for i in $(seq 100); do
  11.         IV=$(echo -n $FV | shasum - | cut -f 1 -d ' ')
  12.         FV=$IV
  13. done
  14. echo $FV
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement