View Full Version : Add encyption to the password field MD5
jeff_bannister384197
09-28-2009, 01:02 AM
Hi Guys,
I would like to add encryption (MD5 etc) to the password in the registration pack. I have security, data assist etc.. if somebody could point me in the right direction would be great.
jeff_bannister384197
09-28-2009, 01:58 AM
Hi Guys,
The current database I am using already has fields that validate with MD5... anybody have an idea how to incorporate this instead of SHA1?
Tks.
Jason Byrnes
09-28-2009, 11:45 AM
On the registration page, double click the Insert record server behaivor. The password column is set to:
<?php echo ((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:""); ?>
change that to;
<?php echo ((isset($_POST["UserPassword"]))?md5($_POST["UserPassword"]):""); ?>
You will also have to change the login page. on the Second page of the Authenticate user server behavior, change the password binding:
<?php echo ((isset($_POST["userpassword"]))?$_POST["userpassword"]:""); ?>
to:
<?php echo ((isset($_POST["userpassword"]))?md5($_POST["userpassword"]):""); ?>
dlovas275157
10-28-2009, 09:26 AM
I noticed when using SHA1 encryption, WA posts a file here:
Root:WA_SecurityAssist:WA_SHA1Encryption.php
Does a similar file need to be created and put in it's place when using MD5 encryption instead?
Or will I need to edit the existing file in that location at all?
Just checking, as i need to implement MD5 next week as I rebuild a few sites in WA.
THanks
Jason Byrnes
10-28-2009, 10:07 AM
no, md5() is a function built into PHP.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.