Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Decrypting User Password in DNN4.5.3
Previous Previous
 
Next Next
New Post 9/23/2008 9:43 AM
User is offline sivam
4 posts
10th Ranked


Decrypting User Password in DNN4.5.3 

I need to maintain password history. I need to check while change password, whether the new password has been used in last 3 times.

Is there any way to do this in DNN 4.5.3?

How can i decrypt the password, so that i can verify the password in password history?

 

Thanks in advance,

Siva

 

 
New Post 9/23/2008 10:36 AM
User is offline Sanjay Mehrotra
509 posts
www.acuitisolutions.com
8th Ranked




Re: Decrypting User Password in DNN4.5.3 

Siva - the product by default does not have the password history feature you're looking for. If you're comfortable overriding the membership provider you could possibly do this but you'd still need to modify the schema to store the last three passwords in some table. DNN uses the membership provider model from Microsoft so it's pretty straightforward (to some extent :)) to swap out the provider and replace it with your custom one which would have the logic of determining the last three passwords, etc.
Sanjay

Another way would be to modify the existing provider (that comes with DNN) but the problem with this (down the road) is that if you upgrade to a newer version of DNN, you'd have to replicate those changes again.
 


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post 9/23/2008 10:53 PM
User is offline sivam
4 posts
10th Ranked


Re: Decrypting User Password in DNN4.5.3 

Thanks sanjay.

I've created a seperate table for storing the password history. But now, i need to know how to decrypt the password from that table. what is the function used to decrypt password and what is the key used?

 
New Post 9/24/2008 10:54 AM
User is offline Sanjay Mehrotra
509 posts
www.acuitisolutions.com
8th Ranked




Re: Decrypting User Password in DNN4.5.3 

Siva - the keys are stored in web.config (machine keys). If you look at the Membership class (via Reflector), you should see a couple of calls in the system.web.security.membershipprovider namespace which should give you a clue as to which one to use. If memory serves me right there was a decryptpassword or unencodepassword which I had to override in my oracle version...

Check it out and let me know if you still need help.
Sanjay


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post 9/24/2008 11:34 AM
User is offline Brandon Haynes
705 posts
brandonhaynes.org
7th Ranked


Re: Decrypting User Password in DNN4.5.3 

 sivam wrote
 

Thanks sanjay.

I've created a seperate table for storing the password history. But now, i need to know how to decrypt the password from that table. what is the function used to decrypt password and what is the key used?

Storing passwords as plaintext in a custom table creates FAR more of security risk than does preventing a user from using their last three passwords.  Be careful here!

Far better would be to hash all of your passwords, and then just store the last three hashes.  You'd then just need to do a simple string comparison of these values without worrying about decryption.  If you must use encryption, encrypt the new password and compare (instead of decrypting and comparing).

I'm not generally a fan of one-off security extensions, so make sure you really need this functionality.

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Decrypting User Password in DNN4.5.3
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Verndale - Web Development, Support, Hosting
Since 1998, Verndale has helped hundreds of emerging and midsize businesses maximize the value and reach of their web assets with a comprehensive offering of strategy, design, development, search marketing and support services.
www.verndale.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP