numBytes must be a multiple of 4, or this will throw an Exception
numBytes must be a multiple of 4, or this will throw an Exception
Generates a random password.
Generates a random salt. Necessary for salting passwords.
Generates a random token. Useful for temporary one-use URLs, such as in email confirmations.
Punctuation is not included in generated passwords by default. Technically, this is slightly less secure for a given password length, but it prevents syntax-related bugs when a generated password is stored in a (properly-secured) text-based configuration file.
In characters. Default length of randomly-generated passwords.
In bytes. Must be a multiple of 4.
In bytes of randomness, not length of token. Must be a multiple of 4. Although, due to usage of base64, using a multiple of 12 prevents a padding tilde from existing at the end of every token.
DAuth - Salted Hashed Password Library for D Random generators