[Ethereum] Save hash data with KECCAK-256 then reverse the process in PHP

blockchainhashkeccakphp

I am saving data hashed with keccak-256 in Solidity and I am trying read that data with PHP, but cant seem to find any good solutions.

I can get PHP to read off the data but I cant arrive at the same resulting hash to compare the results from what PHP gives to what Solidity gives in order to confirm what the data is.

Any idea how I can make this work?

Best Answer

Hashing is one-way: If you have text you can create a hash, but if you have a hash you can't use it to recreate the text.