dcodeIO / bcrypt.js

Optimized bcrypt in plain JavaScript with zero dependencies.
Other
3.47k stars 264 forks source link

Laravel comparability #83

Open starba3 opened 6 years ago

starba3 commented 6 years ago

This is not a real issue, more than a question of weather if this library is compitable with laravel's built in bcrypt. Also worth noting: laravel bcrypt uses 10 rounds.

dcodeIO commented 6 years ago

Unless either laravel's implementation or bcrypt.js does something wrong, yes, hashes between different libraries should be compatible.

gersonmontenegro commented 5 years ago

Yes, it is. I compared the hash provided by passport authentication in Laravel 5.6 using this library in a Ionic app and works like a charm like this:

bcrypt.compareSync('yourPassword', 'yourBcryptHash')

It returns true, or false.

bsor-dev commented 5 years ago

I'm using laravel 5.7, with a default authentication. Yes it works,

Ruffio commented 5 years ago

@starba3 can you close this issue?