yymae
asked on
Urgent Help on CAPICOM Decrypt and Encrypt
Dear all,
I'm new to CAPICOM not sure how to use it in C# Web application. As I know, CAPICOM does have a function to decrypt and encrypt some string. The question is, how to use CAPICOM to encrypt and decrypt given string ?
Below is the encrypted string, but how to decrypt it back to original string ?
EncryptedDataClass Crypt1= new CAPICOM.EncryptedDataClass ();
Crypt1.SetSecret("MyPasswo rd",CAPICO M_SECRET_T YPE.CAPICO M_SECRET_P ASSWORD);
Crypt1.Content = "Some text to encrypt";
string data = Crypt1.Encrypt(CAPICOM_ENC ODING_TYPE .CAPICOM_E NCODE_BASE 64);
this.Label1.Text = data;
Please give some example on method to decrypt.
Thanks in advance
Cheers,
yymae
I'm new to CAPICOM not sure how to use it in C# Web application. As I know, CAPICOM does have a function to decrypt and encrypt some string. The question is, how to use CAPICOM to encrypt and decrypt given string ?
Below is the encrypted string, but how to decrypt it back to original string ?
EncryptedDataClass Crypt1= new CAPICOM.EncryptedDataClass
Crypt1.SetSecret("MyPasswo
Crypt1.Content = "Some text to encrypt";
string data = Crypt1.Encrypt(CAPICOM_ENC
this.Label1.Text = data;
Please give some example on method to decrypt.
Thanks in advance
Cheers,
yymae
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.