r/programming • • Feb 27 '11

A jquery plugin telling how strong is your password. The stronger the password more the naked girl you will see!

http://www.nakedpassword.com/
587 Upvotes

292 comments sorted by

View all comments

Show parent comments

1

u/sharkeyzoic Feb 28 '11
#!/bin/bash

DICT=/usr/share/dict/words

SIZE0=`cat $DICT | gzip -9 -c | wc -c`   
SIZE1=`(cat $DICT; echo $* ) | gzip -9 -c | wc -c`

echo $(( $SIZE1 - $SIZE0 ))

only joking ...

1

u/FeepingCreature Feb 28 '11
SIZE0=$(< $DICT gzip -9 -c |wc -c)

ftfy :)