bcrypt.js icon indicating copy to clipboard operation
bcrypt.js copied to clipboard

Laravel comparability

Open starba3 opened this issue 7 years ago • 4 comments

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.

starba3 avatar Jul 07 '18 01:07 starba3

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

dcodeIO avatar Jul 07 '18 01:07 dcodeIO

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.

gersonmontenegro avatar Aug 14 '18 07:08 gersonmontenegro

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

bsor-dev avatar Jan 28 '19 03:01 bsor-dev

@starba3 can you close this issue?

Ruffio avatar Jan 28 '19 06:01 Ruffio