gistlib
To create a SHA3-256 hash from a string in PHP, you can use the hash function with the sha3-256 algorithm. Here's an example:
hash
sha3-256
main.php$string = 'Hello World'; $hash = hash('sha3-256', $string); echo $hash; 72 chars4 lines
$string = 'Hello World'; $hash = hash('sha3-256', $string); echo $hash;
This will output:
main.php5dd56bb353c2a397baf210158d684f4eac4c53f36ecb5f4029270d9bf43b7f11 65 chars2 lines
5dd56bb353c2a397baf210158d684f4eac4c53f36ecb5f4029270d9bf43b7f11
gistlibby LogSnag