Re: How to Decrypt
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 10/26/04
- Next message: Chris Dunaway: "Re: Declaring Vars in a loop"
- Previous message: Ken Tucker [MVP]: "Re: Moving in cells in datagrid problem!"
- In reply to: Al: "How to Decrypt"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 26 Oct 2004 22:56:59 +0200
"Al" <Al@discussions.microsoft.com> schrieb:
> I am using the follwoing method to encrypt a passowrd.
> But I like to decrypt back to original string. How would
> i do that?
>
> Thanks
> the method i am using
> Public Shared Function Encrypt(ByVal cleanString As String) As
> String
> Dim clearBytes As [Byte]()
> clearBytes = New UnicodeEncoding().GetBytes(cleanString)
> Dim hashedBytes As [Byte]() =
> CType(CryptoConfig.CreateFromName("MD5"),
> HashAlgorithm).ComputeHash(clearBytes)
> Dim hashedText As String = BitConverter.ToString(hashedBytes)
> Return hashedText
> End Function
Your function calculates a hash value of the password. There is no way to
restore the password from this hash value.
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
- Next message: Chris Dunaway: "Re: Declaring Vars in a loop"
- Previous message: Ken Tucker [MVP]: "Re: Moving in cells in datagrid problem!"
- In reply to: Al: "How to Decrypt"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|