摘要:
Security and Cryptography in Python - Hash Functions(3) How password are Verified https://docs.python.org/3/library/hashlib.html https://en.wikipedia. 阅读全文
摘要:
Security and Cryptography in Python - Hash Functions(2) Digital Signatures works - uses hash functions https://en.wikipedia.org/wiki/RSA_(cryptosystem 阅读全文
摘要:
Security and Cryptography in Python - Hash Functions(1) Properties of a Hash Function It is an one-way deterministic function The output is dependent 阅读全文
摘要:
Security and Cryptography in Python - Public Key Encryption Systems - RSA(3) Wrong use of RSA Breaks it import math import random def is_prime(p): for 阅读全文
摘要:
Security and Cryptography in Python - Public Key Encryption Systems - RSA(2) The security of RSA and Implement an Attack import math import random def 阅读全文
摘要:
Security and Cryptography in Python - Public Key Encryption Systems - RSA(1) RSA - 1977 Key generation p,q ← primes n = p * q ← modulus e ← exponent d 阅读全文
摘要:
Security and Cryptography in Python - Key Exchange(4) Implementing Differ-Hellman Key Exchange import math import random def is_prime(p): for i in ran 阅读全文
摘要:
Security and Cryptography in Python - Key Exchange(3) Diffie–Hellman key exchange: https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange P 阅读全文
摘要:
Security and Cryptography in Python - Key Exchange(2) def is_prime(p): for i in range(2, p): if p % i == 0: return False return True print(is_prime(7) 阅读全文
摘要:
Security and Cryptography in Python - Key Exchange(1) # 14 + 15 mode 12 val = (14 + 15) % 12 print(val) # 4 * 5 mode 12 val = (4 * 5) % 12 print(val) 阅读全文