Would someone please tell me how salt (the kind that is added to passwords) is created?
How is salt created?
Collapse
X
-
Tags: None
-
To create the salt they first have a for() loop which will run until the desired length. In that loop, they add onto a string ($salt). What they add on is a mixture of two functions: rand() and chr():
PHP Code:chr(rand());
If you want to see exactly how it is done, open up ./includes/functions_user and look for fetch_user_salt. -
Originally posted by daemonTo create the salt they first have a for() loop which will run until the desired length. In that loop, they add onto a string ($salt). What they add on is a mixture of two functions: rand() and chr():
PHP Code:chr(rand());
If you want to see exactly how it is done, open up ./includes/functions_user and look for fetch_user_salt.Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment