C#帮忙生成一个标准的DLL
//我用C#生成了一个DLL,可是VB无法使用这个DLL。现在我需要使用VB进行调用这个DLL,帮忙生成一个标准的DLL,。谢谢!suck3@using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.Text.RegularExpressions;
using System.Collections;
namespace QQ校友助手
{
class QQPassword
{
public static string binl2hex(byte[] buffer)
{
StringBuilder builder = new StringBuilder();
for (int i = 0; i < buffer.Length; i++)
{
builder.Append(buffer[i].ToString("x2"));
}
return builder.ToString();
}
public static string md5_3(string input)
{
MD5 md = MD5.Create();
byte[] buffer = (Encoding.Default.GetBytes(input));
buffer = (buffer);
buffer = (buffer);
return binl2hex(buffer);
}
public static string md5(string input)
{
byte[] buffer = MD5.Create().ComputeHash(Encoding.Default.GetBytes(input));
return binl2hex(buffer);
}
public static string getPassword(string password, string verifycode)
{
return md5(md5_3(password).ToUpper() + verifycode.ToUpper()).ToUpper();
}
}
}