摘要:
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 - Block Cipher(2) Double DES from pyDes import * import random message = "01234567" key_11 = random.randrange(0, 2 阅读全文
摘要:
Security and Cryptography in Python - Block Cipher(1) DES https://en.wikipedia.org/wiki/Data_Encryption_Standard GOST https://en.wikipedia.org/wiki/GO 阅读全文
摘要:
Security and Cryptography in Python - Stream Ciphers(4) Low entropy - Brute force of our Stream Cipher import random class KeyStream: def __init__(sel 阅读全文
摘要:
Security and Cryptography in Python - Stream Ciphers(3) The problem of re-use of keys in Stream Ciphers import random class KeyStream: def __init__(se 阅读全文