using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CAPICOM;
我就是想要问capicom.dll进行DES加密的函数接口呢~~~我只知道vbscript下面的用法
Function EncryptMessage(Inputstr,KeyStr)
Dim msg
Set msg = CreateObject("capicom.encrypteddata")
msg.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_DES
msg.SetSecret KeyStr
msg.Content = Inputstr
Dim str
str = msg.Encrypt(CAPICOM_ENCODE_BASE64)
EncryptMessage = str
End Function