Re: Urgent Help on CAPICOM Decrypt and Encrypt
From: Guest (Guest_at_aew_nospam.com)
Date: 01/16/05
- Previous message: Paul Glavich [MVP ASP.NET]: "Re: IIS sends login dialog for already authenticated users."
- Next in thread: Dominick Baier: "Re: Urgent Help on CAPICOM Decrypt and Encrypt"
- Maybe reply: Dominick Baier: "Re: Urgent Help on CAPICOM Decrypt and Encrypt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 16 Jan 2005 08:43:21 -0800
> 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
User submitted from AEWNET (http://www.aewnet.com/)
- Previous message: Paul Glavich [MVP ASP.NET]: "Re: IIS sends login dialog for already authenticated users."
- Next in thread: Dominick Baier: "Re: Urgent Help on CAPICOM Decrypt and Encrypt"
- Maybe reply: Dominick Baier: "Re: Urgent Help on CAPICOM Decrypt and Encrypt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|