RSA Encryption in .NET -- Demystified!
From http://www.eggheadcafe.com/articles/20020630.asp
From http://www.eggheadcafe.com/articles/20020630.asp
The "KEY" to RSA Encryption
Whenever you create a new default constructor instance of the RSACryptoServiceProviderclass, it automatically creates a new set of public / private key information, ready to use. However, if you want to re-use previously created keys, you can do this by initializing the class with a populated CspParameters object.
For example [VB.NET]:
Dim cspParam as CspParameters = new CspParameters()
cspParam.Flags = CspProviderFlags.UseMachineKeyStore
Dim RSA As System.Security.Cryptography.RSACryptoServiceProvider
= New System.Security.Cryptography.RSACryptoServiceProvider(cspParam)

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home