Can anyone confirm that 128 length will be long enough for the encrypted hash returned by this class?
Maybe? Run some tests. Look at the documentation.
Currently the rows containing passwords are varchar(64) but I believe they should be converted to char(128).
Keep them as VARCHAR
, change the length to 255. VARCHARS
are stored in the backend as the string, plus one or two bytes to denote the length. One byte for 1 to 255, two bytes for 256-65535.
eg:
A VARCHAR(255)
containing the word "butts" comprises 6 bytes of storage in the back end.
A CHAR(128)
containing the word "butts" comprises 128 bytes of storage in the back end.