Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RSACryptoServiceProvider class

Status
Not open for further replies.

nalanit

Programmer
Joined
Nov 29, 2002
Messages
6
Location
BR
Hello,

I'm new in this list, but i have a problem.
I'm use the class RSACryptoServiceProvider to encrypt a string text, when i
use this in software mode it's work, but when i use it with the CSP of a
token it's dosen't work.

Exemplo source code:

CspParameters csp = new CspParameters( 1, "eToken Base Cryptographic
Provider", "ContainerTeste" );

RSACryptoServiceProvider RSA = new RSACryptoServiceProvider( 1024, csp );

RSAParameters param = RSA.ExportParameters(false);
RSA.ImportParameters( param );

encryptedData = RSA.Encrypt( dataToEncrypt, false );
decryptedData = RSA.Decrypt( encryptedData, false );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top