<?php
$result = sha256('hello');
$mutated = mutate($result);
$unmutated = unmutate($mutated);
echo "hello in sha256 is $result. Mutated it becomes $mutated, and when unmutated it is returned to $unmutated";
function mutate($hash)
{
return str_replace(['a', 'b', 'c', 'd', 'e', 'f'], ['f', 'e', 'd', 'c', 'b', 'a'], $hash);
}
function unmutate($hash)
{
return str_replace(['f', 'e', 'd', 'c', 'b', 'a'], ['a', 'b', 'c', 'd', 'e', 'f'], $hash);
}
preferences:
40.9 ms | 402 KiB | 5 Q