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

many to many - Django Rest Framework ManyToMany filter multiple values -

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

Java Entity Manager - JSON reader was expecting a value but found 'db' -