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?
1 Answer
$
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.
$
is the field separator,2y
identifies bcrypt as the hashing method, and05
means 2^5 iterations.