<?php $hA = str_repeat('A', 65); $hB = \hash('sha256', $hA, true); echo $hA . "\n===\n0x" . bin2hex($hB) . "\n\n"; var_dump( hash_hmac('sha256', 'test', $hA) === hash_hmac('sha256', 'test', $hB) ); var_dump( hash_pbkdf2('sha256', $hA, 'test', 10000, 32) === hash_pbkdf2('sha256', $hB, 'test', 10000, 32) );
You have javascript disabled. You will not be able to edit any code.