I was using Laravel to register the users. It uses bcrypt like so:
$2y$10$kb9T4WXdz5aKLSZX1OkpMOx.3ogUn9QX8GRZ93rd99i7VLKmeoXXX
I am currently making another script that will authenticate users from another source using python. I installed py-bcrypt
and tried it. The format is as follows:
$2a$10$Vj0b0GZegbpXIIpa/lvi9OjkAFJ5zNzziVRW7yN9ssDKVQDX47XXX
But on python I cannot authenticate the user because of invalid salt
.
I noticed that Laravel bcrypt uses $2y
while python uses $2a
. How do I get around this?
notes:
I used 10 rounds for both crypts.