3

I'm creating a password hash using a salt and a cost of 5 and every time the hash Is created it starts with '$2y$05$' is there any reason for this?

3
  • 5
    $ is the field separator, 2y identifies bcrypt as the hashing method, and 05 means 2^5 iterations.
    – Sammitch
    Sep 25, 2013 at 0:09
  • Nice, thanks very much. 2y indicates that bcrypt is the hashing method are there 1y, 3y?
    – user1217709
    Sep 25, 2013 at 0:25
  • 1
    There are many.
    – Sammitch
    Sep 25, 2013 at 16:29

1 Answer 1

6

$ is a field seperator. 2y is a version field, this version number indicates that a significant security flaw has been fixed. There have been others. 05 indicates the cost (2^5 in your case) that has been put into creating the hash.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy