SHA-2 Hashing Using hash() in PHP
Posted by Andy Nagai on Aug 22, 2010
3 comments
As of PHP 5.1.2 can use hash() to convert data to SHA-256 hash value. hash() is part of the php core. Can hash with various algorithms. This will create a 256 bit hash value which requires a 64 length character field to store it. Each hex character requires 4 bits to store. $hash = hash(‘sha256′, [...]