Created
December 18, 2018 00:54
-
-
Save daz/632c1ad69a21788c3a71daf5199ed554 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pwned' | |
PI = '3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111' | |
for n in 1..40 | |
password = Pwned::Password.new PI[0..(n + 1)] | |
str = [ n.to_s.rjust(2) ] | |
str << (password.pwned? ? '😡' : '😃') | |
str << password.pwned_count.to_s.rjust(4) | |
str << password.password | |
puts str.join ' ' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment