By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,106 Members | 2,474 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,106 IT Pros & Developers. It's quick & easy.

Encrypt password Problem

P: n/a
Im not goo writing in english, so here I go !

Public Shared Function Encriptar(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

this function encrypt user password, I need to un-encrypt that password. Can
any1 help me

tnks

--
Francisco J. Salazar - MCP
Jul 22 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
MD5 is one-way encryption. It can't be decrypted.

Also, follow up in a DotNet group.

Bob Lehmann

"f_salazar" <es***********@fac.mil.co> wrote in message
news:78**********************************@microsof t.com...
Im not goo writing in english, so here I go !

Public Shared Function Encriptar(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

this function encrypt user password, I need to un-encrypt that password. Can any1 help me

tnks

--
Francisco J. Salazar - MCP

Jul 22 '05 #2

P: n/a
MD5 is one-way encryption

actually its a HASH, there is no such thing as one-way encryption

encryption is reversable, hashes are not
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:uy**************@TK2MSFTNGP10.phx.gbl...
MD5 is one-way encryption. It can't be decrypted.

Also, follow up in a DotNet group.

Bob Lehmann

"f_salazar" <es***********@fac.mil.co> wrote in message
news:78**********************************@microsof t.com...
Im not goo writing in english, so here I go !

Public Shared Function Encriptar(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

this function encrypt user password, I need to un-encrypt that password.

Can
any1 help me

tnks

--
Francisco J. Salazar - MCP


Jul 23 '05 #3

P: n/a
Whatever there, mister precision.

You've certainly added a lot of value to, and totally invalidated my answer.

You may want to spread your anality to the several sources out on the
Internet that also refer to MD5 as one-way encryption. I'd hate to see you
pee your pants over such a gross inaccuracy.

Bob Lehmann

"PJones" <pj****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
MD5 is one-way encryption

actually its a HASH, there is no such thing as one-way encryption

encryption is reversable, hashes are not
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:uy**************@TK2MSFTNGP10.phx.gbl...
MD5 is one-way encryption. It can't be decrypted.

Also, follow up in a DotNet group.

Bob Lehmann

"f_salazar" <es***********@fac.mil.co> wrote in message
news:78**********************************@microsof t.com...
Im not goo writing in english, so here I go !

Public Shared Function Encriptar(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

this function encrypt user password, I need to un-encrypt that
password. Can
any1 help me

tnks

--
Francisco J. Salazar - MCP



Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.