Correct salting array:

Authored by adridg on Jun 3 2020, 9:30 AM.

Description

Correct salting array:

  • Missing letter "w" and "W" in list of characters meant only 62 letters, so less than 6 bits of randomness per salt char.
  • A char array like this one still has a trailing NUL char which affects the sizeof. Since bounded produces a number < its second argument, need to discount the NUL so we only index into the letters-part of the string.

Add static_assert() to catch this.

Details

Committed
adridgJun 7 2020, 3:10 PM
Parents
R119:6b8229242e63: Sanitize saltCharacter()
Branches
Unknown
Tags
Unknown