02 2021 档案

摘要:Security and Cryptography in Python - Hash Functions(2) Digital Signatures works - uses hash functions https://en.wikipedia.org/wiki/RSA_(cryptosystem 阅读全文
posted @ 2021-02-27 14:04 晨风_Eric 阅读(54) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Hash Functions(1) Properties of a Hash Function It is an one-way deterministic function The output is dependent 阅读全文
posted @ 2021-02-21 16:32 晨风_Eric 阅读(69) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-02-20 22:02 晨风_Eric 阅读(69) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Public Key Encryption Systems - RSA(2) The security of RSA and Implement an Attack import math import random def 阅读全文
posted @ 2021-02-18 22:30 晨风_Eric 阅读(51) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-02-17 21:03 晨风_Eric 阅读(65) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-02-17 18:35 晨风_Eric 阅读(48) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Key Exchange(3) Diffie–Hellman key exchange: https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange P 阅读全文
posted @ 2021-02-14 16:14 晨风_Eric 阅读(67) 评论(0) 推荐(0) 编辑
摘要: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) 阅读全文
posted @ 2021-02-14 15:49 晨风_Eric 阅读(59) 评论(0) 推荐(0) 编辑
摘要: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) 阅读全文
posted @ 2021-02-14 15:19 晨风_Eric 阅读(55) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Block Cipher(3) 阅读全文
posted @ 2021-02-10 10:21 晨风_Eric 阅读(43) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Block Cipher(2) Double DES from pyDes import * import random message = "01234567" key_11 = random.randrange(0, 2 阅读全文
posted @ 2021-02-10 10:13 晨风_Eric 阅读(64) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Block Cipher(1) DES https://en.wikipedia.org/wiki/Data_Encryption_Standard GOST https://en.wikipedia.org/wiki/GO 阅读全文
posted @ 2021-02-08 20:56 晨风_Eric 阅读(93) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Stream Ciphers(5) Stream Cipher in Real Life - A5/1 Linear Feedback Shift Registers(LFSR) 阅读全文
posted @ 2021-02-06 19:56 晨风_Eric 阅读(36) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Stream Ciphers(4) Low entropy - Brute force of our Stream Cipher import random class KeyStream: def __init__(sel 阅读全文
posted @ 2021-02-06 18:46 晨风_Eric 阅读(76) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-02-06 18:17 晨风_Eric 阅读(71) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Stream Ciphers(2) Implementation of the Authenticity problem with Stream Ciphers import random class KeyStream: 阅读全文
posted @ 2021-02-06 15:49 晨风_Eric 阅读(67) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Stream Ciphers(1) The practical implementations of One Time Pads Real-life One Time Pad? 1Gb message requires 1G 阅读全文
posted @ 2021-02-06 15:05 晨风_Eric 阅读(93) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - One Time Pad XOR Example def xor(x, s): print(x, 'xor', s, '=', x^s) def xorb(x, s): print(bin(x), 'xor', bin(s) 阅读全文
posted @ 2021-02-06 12:47 晨风_Eric 阅读(126) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Frequency Analysis Frequency Analysis cipher = """lrvmnir bpr sumvbwvr jx bpr lmiwv yjeryrkbi jx qmbm wi bpr xjv 阅读全文
posted @ 2021-02-05 22:12 晨风_Eric 阅读(240) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Substitution Cipher A Substitution Cipher has 26!=403291461126605635584000000 possible permutations / po 阅读全文
posted @ 2021-02-03 20:20 晨风_Eric 阅读(81) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Check the performance and understand how fast the space of permutations grows def faculty(n): if n <= 1: return 阅读全文
posted @ 2021-02-02 20:23 晨风_Eric 阅读(54) 评论(0) 推荐(0) 编辑
摘要:Security and Cryptography in Python - Implementing a counter on how many permutations there are from itertools import permutations my_list = [1, 2, 3] 阅读全文
posted @ 2021-02-01 22:17 晨风_Eric 阅读(63) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示