<?php
$a = "meow";
$b = $a . "\0woef";
$a = hash_hmac('sha512', $a, 'boegaboe');
$b = hash_hmac('sha512', $b, 'boegaboe');
var_dump(
strlen($a),
strlen($b),
password_hash($a, PASSWORD_BCRYPT, ['salt' => 'boeschrikboeschrikboe!', 'cost' => 12]),
password_hash($b, PASSWORD_BCRYPT, ['salt' => 'boeschrikboeschrikboe!', 'cost' => 12])
);
preferences:
33.4 ms | 402 KiB | 5 Q