tvl-depot/ops/nixos/tvl-slapd/genpasswd.rb

6 lines
102 B
Ruby
Raw Normal View History

require 'securerandom'
passwd = SecureRandom.urlsafe_base64(15)
puts "your password: [[#{passwd}]]"