close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add encyption to the password field MD5

Thread began 9/28/2009 4:02 am by jeff_bannister384197 | Last modified 10/28/2009 1:07 pm by Jason Byrnes | 4251 views | 4 replies |

jeff_bannister384197

Add encyption to the password field MD5

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.

Sign in to reply to this post

jeff_bannister384197

Has to be MD5

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.

Sign in to reply to this post

Jason ByrnesWebAssist

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"]):""); ?>

Sign in to reply to this post

dlovas275157

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

Sign in to reply to this post

Jason ByrnesWebAssist

no, md5() is a function built into PHP.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...