Will a SHA256 hash always have 64 characters?
Yes, a SHA256 is always 256 bits long, equivalent to 32 bytes, or 64 bytes in an hexadecimal string format. You can even use char(64) instead of varchar(64) since the size won't change.
phpversion: 8.2.30
PHP_VERSION: 8.2.30
1234567890
c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646
64
same
v5.2.0
c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646
v5.3.3
c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646
7.0.15
c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646