How to compare two encrypted(bcrypt) password in laravel
<p>How to compare two bcrypt password</p>

<pre><code>$pass1 = '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S';
</code></pre>

<p>And </p>

<pre><code>$pass2 = '$2y$10$QRgaiS6bpATKKQeT22zGKuHq.edDfXQc2.4B3v.zaN.GtGwoyQuMy';
</code></pre>

<p>Both $pass1 &amp; $pass2 are bcrypt for 'test'.</p>

<p>How I can check for equality. without using text 'test' like this</p>

<pre><code>$hash1 = Hash::make('test');
$hash2 = Hash::make('test');

var_dump(Hash::check('test', $hash1) &amp;&amp; Hash::check('test', $hash2));
</code></pre>