Skip to content

Instantly share code, notes, and snippets.

@daz
Created December 18, 2018 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daz/632c1ad69a21788c3a71daf5199ed554 to your computer and use it in GitHub Desktop.
Save daz/632c1ad69a21788c3a71daf5199ed554 to your computer and use it in GitHub Desktop.
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