How? Generate Password from external script March 08, 2019, 01:31:09 PM Hi,I am building an application which has another frontend. From that I want to create users for PHPRad.I would like to give each user a different password to log into the phprad generated application.So my question is: How does PHPRad generate the password which sits in the user table's password field?Thanks alreadyOlaf Quote Selected
Re: How? Generate Password from external script Reply #1 – March 08, 2019, 09:05:30 PM Phprad uses PHP bycrypt hashing algorithm with default settings. You can take a look at the IndexController.php file and see what it generate.You can still use other password hashing mechanism like MD5 sha1,sha256 etc... Or no hashing at all.Under the password file in Phprad application just select the password hashing you want.Regards Quote Selected
Re: How? Generate Password from external script Reply #2 – March 09, 2019, 07:40:16 AM Hi Emman,thank you very much for this detailed answer. I will check your suggested solutions.Olaf Quote Selected
Re: How? Generate Password from external script Reply #3 – March 13, 2019, 07:39:01 AM Hi Emman,when you use SHA-256 hasing - are you hashing the password only or are you adding some salt (email address)?Where is the salt placed? PasswortSalt or SaltPassword - or different?Olaf Quote Selected
Re: How? Generate Password from external script Reply #4 – March 13, 2019, 10:37:11 AM Hi Emman,forgot:if there is no salting done when using SHA-256, is there a way where I can define some SALT to be added to the hashing (SHA-256)?In config.php I could not find anything like it.Olaf Quote Selected
Re: How? Generate Password from external script Reply #5 – March 13, 2019, 01:49:52 PM You can use the APP_ID or Define your own app secret in the config and use it as a salt for your password hashing.Thanks Quote Selected