Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- words = [ '!','#','$','%','0','1','2','3','4','5','6','@','A','B','C','D','E','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','W','X','Y','Z','a','b','c','d','e','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z' ]
- min_words= 5
- max_words = 12 #maximum length of generated words
- def test(passphrase)
- puts passphrase.inspect
- end
- (1..max_words).each do |n_words|
- words.permutation(n_words).each { |p| test p.join }
- end
Advertisement
Add Comment
Please, Sign In to add comment