▍1. Rabin加密算法
用c++实现Rabin算法的加密和解密,大素数由程序自动生成(Using c++ to realize encryption and decryption of Rabin algorithm, large prime number is automatically generated by program.)
用c++实现Rabin算法的加密和解密,大素数由程序自动生成(Using c++ to realize encryption and decryption of Rabin algorithm, large prime number is automatically generated by program.)
说明: SHA1安全哈希算法(Secure Hash Algorithm)主要适用于数字签名标准 (Digital Signature Standard DSS)里面定义的数字签名算法(Digital Signature Algorithm DSA)(SHA1 Secure Hash Algorithms are mainly applicable to Digital Signature Algorithms (DSA) defined in Digital Signature Standard DSS.)
功能不全,安全哈希算法(Secure Hash Algorithm)主要适用于数字签名标准 (Digital Signature Standard DSS)里面定义的数字签名算法(Digital Signature Algorithm DSA)。对于长度小于2^64位的消息,SHA1会产生一个160位的消息摘要。当接收到消息的时候,这个消息摘要可以用来验证数据的完整性。在传输的过程中,数据很可能会发生变化,那么这时候就会产生不同的消息摘要。 SHA1有如下特性:不可以从消息摘要中复原信息;两个不同的消息不会产生同样的消息摘要。(To achieve encryption)
实现数字签名Elgamal算法,该算法是在rsa算法基础上的变形算法。(Digital signature Elgamal algorithm, the algorithm is in the rsa algorithm on the basis of the deformation algorithm.)
(1). 复习AES原理。 (2). 用C/C++编写AES算法并调试通过。 (3). 复习CMAC原理。 (4). 在实现AES基础上,用C/C++编写CMAC算法并调试通过。 (5). 回答下列思考题。 AES解密算法和AES的逆算法之间有什么不同? CMAC与HMAC相比,有什么优点? ((1). Review AES works. (2) with C/C++ write and debug via the AES algorithm. (3) review CMAC principle. (4) on the basis of achieving AES using C/C++ CMAC algorithm written and debugged. (5) Answer the following Questions. What is the difference between AES and AES decryption algorithm inverse algorithm? CMAC compared with HMAC, what are the advantages?)
将国密算法SM3, SM4 ECB的C代码打包成dll库。 然后在C#中进行调用。 有输入输出接口,测试结果正确。 包含所有源代码,可在此基础上进一步开发(The C code of the Chinese national algorithm SM3, SM4 ECB is packaged into a dll library and then called in C# with input and output interfaces. The test result is correct. Contains all source code and can be further developed on this basis)
基于md5和sha1的HMAC程序。程序的功能是给定密钥计算任意长度的文件的HMAC值,验证一个文件的HMAC值是否是一个给定值。程序的使用接口不限,HMAC的计算和验证功能在一个单独的程序中实现(Based on the md5 and sha1 HMAC program. Program function is given key computing random length of the file HMAC value to verify a file s HMAC value is a given value. The use of any program interface, HMAC calculation and verification function in a separate program to realize )
利用C语言实现的cmac算法,该cmac基于AES。程序清晰有注释便于查看(The use of C language cmac algorithm, the cmac based AES. There are clear and easy to view program notes)
利用C语言实现的cmac算法,该cmac基于AES。程序清晰有注释便于查看(The use of C language cmac algorithm, the cmac based AES. There are clear and easy to view program notes)
C/C++下学习加密算法很好的参考材料,包括的算法有RSA椭圆加密算法等(C/C++ learning the encryption algorithm is a good reference material)
对RC4加密解密代码,可以自行修改密钥!类可以直接调用(RC4 encryption and decryption code, you can modify the key! Class can be called directly)
用VC++开发的一款MFC程序,能很好地实现RSA加密和解密算法,对学习RSA加解密算法很有帮助(MFC with VC++ developed a program that can well realize RSA encryption and decryption algorithms, RSA encryption and decryption algorithms for learning helpful)
DES加密方法加密BMP图像,CBC方式实现。(DES encryption methods encryption BMP image, CBC way.)