Documentation ¶
Index ¶
Constants ¶
View Source
const ( LETTERS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" DIGITS = "0123456789" SYMBOLS = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~" LLEN = int64(len(LETTERS)) DLEN = int64(len(DIGITS)) SLEN = int64(len(SYMBOLS)) )
LETTERS, DIGITS, and SYMBOLS are the string representations of all possible letters, digits, and symbols (minus some symbols).
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate sets the rng seed with SBH.Seed, then applies a caesarCipher for the number of times specified by SBH.NRots. The resulting string is then trimmed to the specified SBH.Length. Replace each letter with an uppercase value for SBH.UppercaseTimes. Finally append any SBH.Symbols and return the result.
Types ¶
Click to show internal directories.
Click to hide internal directories.