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

Encrypted password problem

Thread began 6/15/2010 5:14 pm by koerbcm | Last modified 8/16/2010 2:26 pm by bjgarner241692 | 937 views | 8 replies |

koerbcm

Encrypted password problem

After i followed the directions to encrypt the password i now can not log in to the site. I use a sha1 generator to verify the encrypted password in the database against the one sent in the email and converted to sha1 and they match however when i enter the password it does not allow me to continue. I have looked over all the settings and know that i am just over looking something.

Attached Files
website2.zip
Sign in to reply to this post

Eric Mittman

If you are storing the sha1 version of the password in your db then you need to make sure that the field is a varchar type of at least 40 characters. It looks like you are correctly comparing the sha1 value for the password in your login server behavior. Do you know what the sha1 version of your password should be? If so you should be able to directly compare with what you have in the db to see if they match. So long as the value you are comparing matches the value in the db then you should be fine. Post back and let us know what you discover.

Sign in to reply to this post

koerbcm

That's what it was. I had it set to VARCHAR (32). when i set it to 40 it worked fine.

Sign in to reply to this post

Eric Mittman

Nice to hear, the length of the encrypted password is one of the more common issues that I see when the login is not working correctly.

Sign in to reply to this post

bjgarner241692

I want to be able to authenticate users against a pre-existing database which stores passwords in an encrypted field. The type is varchar(64). Can this be done?

Sign in to reply to this post

koerbcm

I think it depends on the type of encryption. Webassist supports SHA1.

There is a video tutorial here under solution recipes: http://www.webassist.com/support/securityassist/

it is pretty helpful and works very well. Hope this helps.

Sign in to reply to this post

bjgarner241692

Thanks
My app uses SHA1, 64 characters, but I cannot seem to authenticate against it.
I'm not sure if what I'm doing is even possible but I think I've done everything correctly so maybe it is not.

Sign in to reply to this post

Jason ByrnesWebAssist

the sha1() function will only return a 20 or 40 character string, by default the string length is 40:
function.sha1.php

if your password is being stored as 64 characters, it is using another encryption method. you will need to know the encryption method being used to be able to accomplish what you are trying to do.

Sign in to reply to this post

bjgarner241692

Thank you. I read in another thread where it had to be at least 40 characters so I was hoping ....

The database I am using is the iDevAffiliate program. According to their documentation they use SHA1

idevaffiliate.php

I guess I will have to take another approach.

Sign in to reply to this post

koerbcm

This post has been deleted.

loading

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