Anatomy of a bcrypt hash
A bcrypt hash looks like $2b$12$R9h/... and packs four things into one string: the algorithm version (2b), the cost factor (12), a 22-character salt and the hash itself. Because the salt is stored inside the hash, every password gets a unique salt automatically and you never store it separately.