Hashed Password Field

andres

New member
My database has a Users table separated from Dadabik's and I need to store encrypted or hashed passwords (Not plaintext).

I want to modify the "New Record" form in order to add something similar to what Dadabik has for new Users.

An extra input field and a button that generates the hashed password and stores it into the password field. Is this possible?

Thank you
Andres
 

eugenio

Administrator
Staff member
Hello,
yes you can, look at the file pwd.php, starting from line:

if (strlen_custom(unescape($_POST['pwd'])) > 72){

you will see the code that DaDaBIK uses to encrypt passwords.

Best,
 

andres

New member
Thank you Eugenio.

I found a way to do it with a custom button that modifies the same input field. Not the most elegant solution but it works.

Andres
 
Top