"gg" <mx*****@hotmai l.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Hi, Dear All,
Please see the following code:
SHA1 sha1 = SHA1.Create();
string str="1234";
byte[] m_str = sha1.ComputeHas h( Encoding.Unicod e.GetBytes( str) );
....
I want to know how to get the original str -"1234" from m_str?
Thanks
Can't be done. If you want the original string, don't use a hash function.
Use private key encryption.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--