annotate bin/pwgen @ 478:8956a404dba6

Added random password generator.
author edogawaconan <me@myconan.net>
date Mon, 26 Aug 2013 17:51:18 +0900
parents
children fea77cdcdb09
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
478
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
1 #!/usr/bin/env ruby
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
2
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
3 require 'securerandom'
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
4
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
5 5.times do |n|
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
6 puts "#{n}: #{SecureRandom.urlsafe_base64(12)}"
8956a404dba6 Added random password generator.
edogawaconan <me@myconan.net>
parents:
diff changeset
7 end