I am trying to move away from using CAPICOM since I can no longer use it (64-bit Windows 7 machine).
The existing code for using TripleDES is as follows:
EncryptedDataClass cryptic = new EncryptedDataClass();
cryptic.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM.CAPICOM_ENCRYPTION_ALGORITHM_3DES;
cryptic.SetSecret(secretKey, CAPICOM_SECRET_TYPE.CAPICOM_SECRET_PASSWORD);
cryptic.Content = stringToEncrypt;
encryptedString = cryptic.Encrypt(CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_ANY);
The only information provided for encryption is secretKey. And secretKey is about ten bytes. Is there a way to use the .NET class for the same encryption. Note. This is used to test the connection to a web service that will still use CAPICOM. Any help or ideas are appreciated.
source
share