close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

adding encryption to login password box

Thread began 4/09/2010 1:41 pm by mr hankey | Last modified 8/13/2010 4:44 pm by mr hankey | 3364 views | 23 replies

Eric Mittman

The problem with your login is that the encryption is applied incorrectly. This line of code:

"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"") ."".$WA_Auth_Separator."".WA_SHA1Encryption(((isse t($_POST["userpassword"]))?$_POST["userpassword"]:"")) .""),

Should be updated so that the sha1 is applied to the actual value that it is using, not the value it is checking like this:

"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"") ."".$WA_Auth_Separator."".((isset($_POST["userpassword"]))?WA_SHA1Encryption($_POST["userpassword"]):"") .""),

You should also check on your password column in your db, it needs to be a varchar type of at least 40 characters. If it is any shorter the hash values will not match you and you will not be able to login.

You will need to email the unencrypted password to the user. There is a Solution Recipe that deals with this exact scenario. You can find it on the Security Assist support page under the Solution Recipes area:


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





Ease of use


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...