come confrontare due password di bcryptcome confrontare due criptato (bcrypt) password nel laravel
$pass1 = '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S';
E
$pass2 = '$2y$10$QRgaiS6bpATKKQeT22zGKuHq.edDfXQc2.4B3v.zaN.GtGwoyQuMy';
Sia $ pass1 & $ pass2 sono bcrypt per 'test'.
Come posso verificare l'uguaglianza. senza l'utilizzo di testo 'test' in questo modo
$hash1 = Hash::make('test');
$hash2 = Hash::make('test');
var_dump(Hash::check('test', $hash1) && Hash::check('test', $hash2));
Date un'occhiata a questo, fratello. [Spiegazione di Laravel Hash] (https://mnshankar.wordpress.com/2014/03/29/laravel-hash-make-explained/). –