Re: How to Decrypt

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 10/26/04


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


Relevant Pages

  • How to Decrypt
    ... I am using the follwoing method to encrypt a passowrd. ... But I like to decrypt ... back to original string. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Unhashing int64 to string
    ... The hash value can only tell you which set of about ... you may have some information about the original string ... or usually shorter than 20 characters. ... If the string were known to be a fragment of natural language text, ...
    (comp.theory)
  • Re: Problem with decryption
    ... storing it and decrypting it back tot he original string. ... A crytographic hash is a unique result ... > The hash itself is NOT decryptable back to the original string. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: What function allows conversion md5 in text
    ... original string. ... Even a string of 5 characters may have a duplicate ... same hash as 'abc', for instance. ... Hoshi: "Shouldn't we try to help them?" ...
    (comp.lang.php)
  • Re: What function allows conversion md5 in text
    ... original string. ... Even a string of 5 characters may have a duplicate hash. ... Or a password of 'ksfjlksahoh3ndskjvcn' just might have the same hash as 'abc', ... it doesn't matter which one the user uses to get into the system. ...
    (comp.lang.php)