
April 9th, 2001, 10:05 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
How to use RSA_CSP class?
<i><b>Originally posted by : MPiekalkiewicz (mpk@artiso.com)</b></i><br />I'd like to Ecrypt passwords before stroring them to DB. I'd like to use RSA_CSP class but all the time a got error message.<br />Its my code:<br />byte [] arrSource;<br />byte [] arrResult;<br />UnicodeEncoding mytext=new UnicodeEncoding();<br />arrSource=new Byte[40];<br />mytext.GetBytes(mystring.ToCharArray(),0,mystring. Length,arrSource,0);<br />RSA_CSP enc=new RSA_CSP();<br />arrResult=enc.Encrypt(arrSource,true);
|