ruby - Secure Password Generation With Random Chars -


i trying generate random password contains special chars using ruby. know if there standard generating such passwords. have considered using weighted probability distribution , assigning weights such there higher probability of picking special chars , not sure if widely-accepted standard.

you can use securerandom (docs):

require 'securerandom'  password = securerandom.base64(15) # => "vkvuwvpuwsmczf9nn/do" 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -