登录
首页 » 加密解密 » 带密钥的md5算法库md5lib.h共有下列函数: char* MDString (char *) /*输入任意一个字符串,经过md5算法处理后...

带密钥的md5算法库md5lib.h共有下列函数: char* MDString (char *) /*输入任意一个字符串,经过md5算法处理后...

于 2022-01-27 发布 文件大小:5.82 kB
0 189
下载积分: 2 下载次数: 1

代码说明:

带密钥的md5算法库md5lib.h共有下列函数: char* MDString (char *) /*输入任意一个字符串,经过md5算法处理后,返回结果:一个定长(32个字符) 字符串 */ char* MDFile (char *) /*输入任意一个文件名,文件内容经过md5算法处理后,返回结果:一个定长 (32个字符)字符串 */ char* hmac_md5(char* text, char* key) /*输入任意一个字符串text,和一个用做密钥的字符串key,经过hmac_md5算法处 理,返回处理结果:一个定长字符串(32个字符)*/ 具体使用方法可参考例子sample.c,其运行结果在本文后面。-Md5 algorithm with a key repository md5lib.h total of the following functions: char* MDString (char*) /* enter any one string, after md5 algorithm processing, return the result: a fixed-length (32 characters) string*/char* MDFile (char*) /* enter any of the file name, file contents through the md5 algorithm processing, return the result: a fixed-length (32 characters) string*/char* hmac_md5 (char* text, char* key) /* input a string of arbitrary text, and a string key used as key, after hmac_md5 algorithm processing, return processing results: a fixed-length string (32 characters)*/specific examples of the use of methods can be found sample.c, the results

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • RSA realized, according to the article to achieve RSA algorithm
    RSA的实现,可以根据文章来实现RSA算法-RSA realized, according to the article to achieve RSA algorithm
    2022-03-19 08:56:40下载
    积分:1
  • CRC32
    CRC32哈希算法的C#版源码.采用的是动态生成码表的方法.-CRC32-hash algorithm in C# version of the source code. The code is dynamically generated table method.
    2022-04-28 05:11:44下载
    积分:1
  • PGP是一种混合密码体制。当用户使用PGP加密文本,PGP…
    PGP 是一种混合密码系统。当用户使用PGP 来对纯文字加密的时候, PGP 首先会压缩这 段纯文字。数据压缩能够节省调制解调器传输时间以及磁盘类空间,还有更重要的、强化密码法的 保密程度。-PGP is a hybrid cryptosystem. When the user to use PGP to encrypt the text, PGP will first this text compression. Data compression can save time and modem transmission disk space, and more importantly, to strengthen the password confidentiality law.
    2022-02-05 22:14:40下载
    积分:1
  • 一个用DELPHI编写的DES加密接密原代码
    一个用DELPHI编写的DES加密接密原代码- The DES encryption which compiles with DELPHI meets the dense original code
    2022-06-19 12:20:51下载
    积分:1
  • –Diffie Hellman密钥交换C
    应用背景–Diffie Hellman密钥交换(D–h)[注1 ]是安全地交换密钥在公共信道的具体方法,是第一个公开密钥协议,最初的概念由RalphMerkle。[ 1 ] [ 2 ] D–H是一个最早的实例的公共密钥交换实现在密码学领域。传统上,双方之间需要安全的加密通信,他们首先交换密钥的一些安全的物理信道,如纸的密钥列表由一个受信任的快递。Diffie Hellman密钥交换方法–使双方没有先验知识的彼此共同建立一个共享的密钥在不安全的信道。这个密钥可以用来加密随后的通信使用一个对称密钥密码。关键技术密码解释最简单的协议原有的实现使用整数模p的乘法群,其中p是素数,G是一个原始根模p这是协议的一个例子,在蓝非秘密值,和红色的秘密值。爱丽丝和鲍勃同意用一个模p = 23和g = 5(这是一种原始的根模23)。爱丽丝选择了一个秘密整数a = 6,然后发送给Bob = GA mod p甲= 56国防部23 = 8鲍勃选择一个秘密整数b = 15,然后将爱丽丝B = GB mod p乙= 515国防部23 = 19爱丽丝计算的=钡国防部的= 196国防部23 = 2鲍勃计算S = AB mod p的= 815国防部23 = 2爱丽丝和鲍勃现在分享一个秘密(2号)。爱丽丝和鲍勃到达相同的值,因为:标准的β=(镓),乙模,β=(镓),乙,国防部,国防部,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1鲍勃,(GA mod p)b mod p =(56除以23)15国防部23。请注意,只有一个,B,和(GAB模型P = GBA mod p)是保密的。所有其他的值,磷,克,镓,GA,和英国国防部的标准,是在明确的。一旦爱丽丝和鲍勃计算共享秘密他们可以使用它作为一个加密密钥,只有他们自己知道,在相同的开放式通信信道发送消息。
    2022-02-21 06:22:28下载
    积分:1
  • CRC校验中叠加和校验方法的生成,校验等功能函数源码。
    CRC校验中叠加和校验方法的生成,校验等功能函数源码。-CRC verification and validation methods of superposition generation, calibration source, such as performance function.
    2022-08-08 20:23:21下载
    积分:1
  • document encryption software source code, document encryption to drive to genera...
    加密文件软件源代码,把要加密文件拖动到生成软件上,按照软件提示要求即可进行保密措施.此源代码为本人校友编辑-document encryption software source code, document encryption to drive to generate software, in accordance with the software can suggest requirements for security measures. This source code for my alumni editor
    2022-02-05 04:06:57下载
    积分:1
  • 一个用c编写的文件加密器,可以加密任何类型的文件,速度很快!for dos!...
    一个用c编写的文件加密器,可以加密任何类型的文件,速度很快!for dos!-with a paper prepared by the encryption device that can encrypt any type of document, very fast! For dos!
    2023-02-06 16:35:03下载
    积分:1
  • 目前企业面临的计算环境和过去有很大的变化,许多数据资源能够依靠网络来远程存取,而且越来越多的通讯依赖于公共网络公共网络(如 Internet),而这些环境并不保...
    目前企业面临的计算环境和过去有很大的变化,许多数据资源能够依靠网络来远程存取,而且越来越多的通讯依赖于公共网络公共网络(如 Internet),而这些环境并不保证实体间的安全通信,数据在传输过程可能被其它人读取或篡改。-currently facing the enterprise computing environment and past a great change, many data resources to be able to rely on remote network access, and more and more dependent on public communications networks public networks (such as the Internet), which environment is not a guarantee of the security entities communications, data transmission possible by other people read or tampered with.
    2022-03-25 09:48:32下载
    积分:1
  • MYCALLBACK
    MYCALLBACK
    2022-05-26 19:21:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载