Urgent Help on CAPICOM Decrypt and Encrypt
From: Mae (Mae_at_discussions.microsoft.com)
Date: 09/28/04
- Next message: Dominick Baier: "Re: problem writing a file"
- Previous message: Iain A. Mcleod: "Re: problem writing a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 27 Sep 2004 22:53:03 -0700
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("MyPassword",CAPICOM_SECRET_TYPE.CAPICOM_SECRET_PASSWORD);
Crypt1.Content = "Some text to encrypt";
string data = Crypt1.Encrypt(CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64);
this.Label1.Text = data;
Please give some example on method to decrypt.
Thanks in advance
Cheers,
Mae
- Next message: Dominick Baier: "Re: problem writing a file"
- Previous message: Iain A. Mcleod: "Re: problem writing a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|