Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Encrypting existing DNN PasswordsEncrypting existing DNN Passwords
Previous
 
Next
New Post
10/11/2011 1:40 PM
 

Hi,

I have a DNN 5.6.3 website and the passwords in it are not encrypted.
If we change the password encryption in the webconfig it encrypts passwords for newly created accounts.
But, Is there any way I can encrypt all passwords that are already there in the database?

Regards
Tej

 
New Post
10/11/2011 3:11 PM
 
Hi Taj,

I don't know of there's a better answer... but I had a similar problem and had a lot of trouble finding a stock solution. I eventually put together a module that replaces the normal login module. When the user logs in, after running through the normal login process (and if it's successful of course), it would check their existing password format, and, if necessary, change the format. Then, it would run the change password procedure where the new password was the password they entered on the site.

The result is that the user doesn't know it happens, but, the first time they log in, their password is converted to the current format specified in the web.config file.

Hope all's well,

Mike
 
New Post
10/20/2011 6:12 PM
 
Mike,

I like your idea. But, how are you changing the password format?
Are you directly updating it in the database aspnet_membership table? Or are you changing it using code?

I tried changing the password format to 2 in the aspnet_membership table and then called the UserController.ChangePassword() but it is giving
me the following error when I give the new password as a string.

"The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters."

Am I missing something here? Or is this not the correct approach at all?

Regards
Tej
 
New Post
10/24/2011 3:18 PM
 
Hi Taj,

Yeah, I couldn't find a way to change the format, so I did it directly. Unfortunately, I'm not sure about that error.

Other than changing the format, I used the normal DNN password procedures to do everything else... I think I first reset their password, then I changed it to the value they typed in...

Mike
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Encrypting existing DNN PasswordsEncrypting existing DNN Passwords


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out