you are in: codestackercodes [RSS] → tag: password [RSS]

simple random password method Delicious Email

show/hide lines
   1  def random_password(size = 8)
   2  	charset = %w{ 2 3 4 6 7 8 9 A B C D E F G H J K L M N P Q R T V W X Y Z}
   3  	(0...size).map{ charset.to_a[rand(charset.size)] }.join
   4  end
created by leozera — 25 June 2011 — get a short url — tags: password ruby embed