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 -

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

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -