Print Page | Close Window

Decrypting a password

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1685
Printed Date: 25-Apr-2024 at 7:08am


Topic: Decrypting a password
Posted By: donalism@gmail.com
Subject: Decrypting a password
Date Posted: 15-Mar-2010 at 2:11am
Hi , I used a method CryptoFns.MD5HashUTF16ToString(string pValue) to encrypt passwords. Now I want to be able to decrypt the passwords. I tried using IdeaBlade.Util.CryptoFns.SimpleDESDecrypt(string pValue,string pEncryptionKey) but I don’t quite understand what the second string parameter should be.



Replies:
Posted By: smi-mark
Date Posted: 15-Mar-2010 at 9:08am
You cannot decrypt a MD5 Hash. A hash is one way function.

If in your table, the users password is stored as a md5 hash, then when they try to login, you hash the entered password and compare it against the stored hash.



Print Page | Close Window