Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (17 sloc) 0.504 kb
#!/bin/bash
SHAFILE='./SHA1.txt'
read -sp "Enter the password you would like to check (input will not be displayed): " PASSWORD
echo
HASH=`echo -n $PASSWORD | sha1sum - | awk '{print $1}'`
COUNT=`grep $HASH $SHAFILE | wc -l`
if [ $COUNT -gt 0 ]; then
echo Your password was found!! Better Change it!
exit
fi
HASH2=00000${HASH:5}
COUNT2=`grep $HASH2 $SHAFILE | wc -l`
if [ $COUNT2 -gt 0 ]; then
echo Your password was found!! Better Change it!
exit
fi
echo Your password was NOT found! Good Job!
Jump to Line
Something went wrong with that request. Please try again.