Created
October 30, 2023 02:52
-
-
Save karmatr0n/0322bed770b82dc25ce450c6393f2307 to your computer and use it in GitHub Desktop.
Generate random string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'securerandom' | |
SecureRandom.base64(28).slice(0,26).gsub(/(\+|\/)/,("a".."z").to_a. | |
sample) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment