Advertisement
Guest User

Untitled

a guest
May 4th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/bin/bash
  2. s=$(head -1 /dev/urandom); echo "DATA:$s"; k=$(echo $s | sha1sum); echo "HASH:$(echo $k | cut -c1-40)";
  3. 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))
  4. echo "@$h key $i, hash $(($t-$i))" >> tmp; h=$( echo $h | sha1sum | cut -c1-15); i=$(( i-1 ));
  5. 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