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 );
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 );