How long is the SHA256 hash?

前端 未结 5 1716
梦谈多话
梦谈多话 2020-12-02 05:44

I\'m going to run SHA256 on a password + salt, but I don\'t know how long to make my VARCHAR when setting up the MySQL database. What is a good len

5条回答
  •  生来不讨喜
    2020-12-02 05:58

    I prefer to use BINARY(32) since it's the optimized way!

    You can place in that 32 hex digits from (00 to FF).

    Therefore BINARY(32)!

提交回复
热议问题