in reply to
Create encrypted passwords
Line 9 assigns a character to $salt, so when $salt is used in line 10, it will pick a random character from the 1 character $salt, which means $salt will always be two repeated characters.
Comment on
RE: Create encrypted passwords
In Section
Craft