Use python to implement common classic algorithms in cryptography, such as Vigenere, 3DES, RSA, ElGamal, Diffie-Hellman, RSA signature, ElGamal signature, HMAC, hash algorithm, column shift, AES, etc.
用python实现密码学中的常用经典算法,例如Vigenere、3DES、RSA、ElGamal、Diffie-Hellman、RSA签名、ElGamal签名、HMAC、哈希算法、列移位、AES等等。
| Type | content | Code |
|---|---|---|
| Programming Basics | Type Hint, String, Bytes, Hex, Base64 | code |
| Classical Cryptography | Vigenère cipher (on alphabet string) | code |
| Columnar transposition (on alphabet string) | code | |
| Symmetric Encryption | 3DES | code |
| AES | code | |
| Public Key Encryption | Textbook RSA (on group) | code |
| ElGamal (on group) | code | |
| Key Exchange | Diffie–Hellman key exchange (on group) | code |
| Signature | Signature Textbook RSA (on group) | code |
| Signature ElGamal (on group) | code | |
| Hash | Regular hash algorithms | code |
| HMAC | code | |
| Simulated authentication server complex system | code |
[2] Paar C , Pelzl J , 马小婷译. 深入浅出密码学: 常用加密技术原理与应用[M]. 北京:清华大学出版社, 2012.09.
- 如果存在疑问或发现错误,欢迎提Issues交流订正。
- 如果遇到图片无法加载的情况,可以考虑使用代理,或者访问博客网站 。