Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- s=$(head -1 /dev/urandom); echo "DATA:$s"; k=$(echo $s | sha1sum); echo "HASH:$(echo $k | cut -c1-40)";
- t=10; i=$t; h=$(echo $k | cut -c1-15); while (( $i > 0 )); do #h^10(pw)==h(h^9(pw));; h^9(pw)==h(h^8(pw))
- echo "@$h key $i, hash $(($t-$i))" >> tmp; h=$( echo $h | sha1sum | cut -c1-15); i=$(( i-1 ));
- done; tac tmp > rv; rm tmp; cat rv; rm rv; #switch to rb array instead of files? finish identity generator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement