dcodeIO / bcrypt.js

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

Issue with test.js line 182 #106

Open WebMatrixware opened 4 years ago

WebMatrixware commented 4 years ago

For some reason salt2 used in the first roundsOOB test (lines 179 - 182) uses bcrypt as well as bcrypt.js and compares them. This results in an issue since bcrypt returns a salt with type of 2b while bcrypt.js returns a salt with type 2a. Oddly, in the following 2 tests both salt1 and salt2 use the bcrypt.js library.... so what is the real intent here?