Hello Guys,
If you want to generate random string with specific some constraint like at least single upper case, lower case and digit. or many more.
Here i have found gem called 'passgen'. which provides many possible changes.
gem install passgen
On console:
require 'rubygems'
require 'passgen'
Passgen::generate(:lowercase => true, :uppercase => true, :digits => true, :length => 10)
For more information follow the url - https://github.com/cryptice/Passgen
No comments:
Post a Comment