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
Post a Comment