Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

deepak832

macrumors newbie
Original poster
Jun 26, 2008
28
0
Hello Everyone,
i am developing an application, but i am new in iphone development. I want to encrypt my password, for that i have done my work with sha1 encryption, means my sha1 encryption data is redy, but now i want to use base64 encoding, like :
//////////
created = String.Concat(nonce,GetDateTime(), password);

byte[] myPassword;

ASCIIEncoding encoding = new ASCIIEncoding();

SHA1 sha = new SHA1CryptoServiceProvider();

myPassword = sha.ComputeHash(encoding.GetBytes(created));

passwordDigest = Convert.ToBase64String(myPassword);
///////

the above code is i used in my C#.net app , like that i want to do for iphone also, can any one please help me in that..
and how can i add openssl framework in my project, i added the libcrypto, but i am not able to use openssl, can you please help me in that also.

Thanks in advance.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.