求md5批量加密的工具,要能保存加密出来的密文,密文与明文对应的....生成数据库也行!

发布网友

我来回答

2个回答

热心网友

用Replace Pioneer可以实现md5批量加密,假如某文件每行是一个明文,详细步骤:
1. ctrl-o打开文件
2. ctrl-h打开replace窗口
* replace unit选择Line
* replace with pattern输入md5_hex($match)\n
3. 点击Replace,每行生成一个md5密文
4. ctrl-s保存到文件里。

测试结果,明文:
AAAAA
BBBBB
CCCCC

md5加密文本:
f6a6263167c92de84ac998b3c4e4d1
87c7d4068be07d390a1fffd21bf1e944
e86a1cf0678099986a901c79086f5617

用Replace Pioneer进行加密的例子还有:How to calculate md5 hex value of each line of text file?

参考资料:http://www.mind-pioneer.com/services/634_Text_data_calculation.html

热心网友

3.120 icePub_getMD5FromString

l 函数原型:
int WINAPI icePub_getMD5FromString(char *strData,char *strResult)
输入:strData 待处理的文本串
输出:strResult MD5结果串,32字节
返回码:

l VC连接Lib方式声明
__declspec(dllexport)
int WINAPI icePub_getMD5FromString(char *strData,char *strResult);

l 动态调用例程
VC sample代码:
char buff[1024];
char buff2[1024];

strcpy(buff2,"Walk At Familiar Alley, Pursue Concordand's Footfall, Between Front And Back, What Course To Follow?");

typedef int (WINAPI ICEPUB_GE*5FROMSTRING)(char *strData,char *strResult);
ICEPUB_GE*5FROMSTRING *icePub_getMD5FromString = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_getMD5FromString=(ICEPUB_GE*5FROMSTRING *)GetProcAddress(hDLLDrv,"icePub_getMD5FromString");
}
if(icePub_getMD5FromString)
icePub_getMD5FromString(buff2,buff);
if(hDLLDrv)
FreeLibrary(hDLLDrv);

AfxMessageBox(buff);

VB sample 代码:
Private Declare Function icePub_getMD5FromString Lib "icePubDll.dll" (ByVal strData As String, ByVal strResult As String) As Integer

Dim a2 As Integer
Dim buff As String
Dim buff2 As String

buff2="Go with This life Loneliness, carried off Day And Night Dreariness, Between Sun And Moon, Tell Words from one's heart Each Other."
buff=Space(1024)
a2=icePub_getMD5FromString(buff2,buff)

MsgBox buff

http://dl.icese.net/dev.php?f=icePubDll.rar 下载追问麻烦直接给个成品..

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com