Cryptography
文章平均质量分 83
timerring
知行合一
展开
-
山东大学密码学引论复习重点总结与期末试题
考察的重要知识点包括试题回顾:一、证明题(25分)1)请简述一次一密加密模式。(6分)2)一次一密是完美加密吗?请给出结论并证明。(19分)二、简答题(25分)1)请简述香农定理(Shannon’s Theorem)。(5分)2)简述强加密算法基于的两种本原操作:混淆(Confusion)和扩散(Diffusion)。(10分)3)对称加密和非对称加密最主要的区别是什么。(5分)4)请给出哈希函数的三种安全级别。(5分)三、计算题(25分)允许使用计算器。回答题目时,需要以文字形式写出计算过程原创 2022-07-09 19:05:10 · 7708 阅读 · 2 评论 -
python实现模拟身份验证服务器综合系统设计
完成一个 Python 程序,实现密码存储和验证,用于模拟身份验证服务器,以便破解数据库的对手无法获得用户的明文密码。实现基本的注册和登录功能。测试样例如下:该系统的源码如下:output由输出可知,系统功能一切正常。受于文本篇幅原因,本文相关算法实现工程例如环境及相关库,无法展示出来,现已将资源上传,可自行点击下方链接下载。python实现模拟身份验证服务器综合系统工程文件......原创 2022-07-09 18:47:03 · 29320 阅读 · 1 评论 -
python实现对称加密AES算法
Modes of operations allow you to encrypt more data than the block size of your symmetric block cipher. Example: .In this program, you are required to demonstrate the algorithm with a third-party crypto library, . Recall that you must provide a correspondi原创 2022-07-09 18:42:44 · 23612 阅读 · 1 评论 -
python实现经典密码学中列移位算法
Reference:http://rumkin.com/tools/cipher/coltrans.phpA columnar transposition, also known as a row-column transpose, is a very simple cipher to perform by hand. First, you write your message in columns. Then, you just rearrange the columns. For example.原创 2022-07-09 18:07:42 · 20011 阅读 · 3 评论 -
哈希算法的python实现与应用
In this program, you are required to invoke the and algorithms that are implemented in build-in library. Your program does the following:Example Input 1Example Output 1Example Input 2Example Output 2solution codeoutput受于文本篇幅原因,本文相关算法实现工程例如环境及相关库原创 2022-07-09 17:29:03 · 19553 阅读 · 1 评论 -
python实现HMAC算法与应用
In this program, you are required to invoke the algorithms that are implemented in build-in library. Your program does the following:Example InputExample Outputsolution codeoutput受于文本篇幅原因,本文相关算法实现工程例如环境及相关库,无法展示出来,现已将资源上传,可自行点击下方链接下载。python实现Hash和H原创 2022-07-09 17:28:28 · 20680 阅读 · 1 评论 -
python实现签名ElGamal算法
In this part, you are required to implement the ElGamal algorithm for signing from scratch. It contains the following three procedures, KeyGen, Encrypt, and Decrypt.Your program does the following:Note that in this program, you may only include third-party原创 2022-07-09 16:57:31 · 20459 阅读 · 1 评论 -
python实现签名RSA算法
In this part, you are required to implement the textbook RSA algorithm for signing from scratch. The signing procedure is quite similar with encryption, but you should not be confused with them. It contains the following three procedures, KeyGen, Encrypt,原创 2022-07-09 16:46:25 · 23949 阅读 · 2 评论 -
python实现Diffie-Hellman密钥交换算法
In this part, you are required to implement the Diffie–Hellman key exchange algorithm in Zp\mathbb{Z}_pZp from scratch. (Hint: review the procedure of ElGamal algorithm). As the Setup procedure is the same as ElGamal algorithm, it is assumed that the publ原创 2022-07-09 13:39:20 · 16474 阅读 · 2 评论 -
python实现公钥密码ElGamal算法
In this part, you are required to implement the ElGamal algorithm from scratch. It contains the following three procedures, KeyGen, Encrypt, and Decrypt.Your program does the following:Note that in this program, you may only include third-party codes or li原创 2022-07-09 13:30:38 · 25585 阅读 · 2 评论 -
python实现公钥加解密RSA算法
python实现公钥加密RSA算法 In this part, you are required to implement the textbook RSA algorithm from scratch. It contains the following three procedures, KeyGen, Encrypt, and Decrypt.Your program does原创 2022-07-09 12:59:43 · 24322 阅读 · 5 评论 -
python实现对称加解密3DES算法
In this program, you are required to implement the 3DES algorithm using the provided encrypt and decrypt function of DES. The encrypt and decrypt method of 3DES should also be pure functions, i.e. without side effects.Your program does the following:Read a原创 2022-07-09 11:53:46 · 16856 阅读 · 1 评论 -
python实现经典密码学中Vigenere算法
In this program, you are required to implement the Vigenère cipher algorithm from scratch, to encrypt and decrypt for alphabet string. The encrypt and decrypt method should be pure functions, i.e. without side effects.Your program does the following:Input:原创 2022-07-09 11:39:48 · 20865 阅读 · 1 评论 -
Python中String, Bytes, Hex, Base64之间的关系与转换方法详解
In this program, you are required to learn basic concepts of Python 3.Type hints is a feature to specify the type of a variable, which is useful for write correct codes. In all lab assignments, you are required to write Python 3 code with type hints featur原创 2022-07-09 10:53:55 · 26386 阅读 · 1 评论