10
2
Fork 0

leaky crypto: wrap

This commit is contained in:
xenia 2020-05-26 22:41:05 -04:00
parent 1d4e3c29eb
commit 36dfe28656
1 changed files with 7 additions and 2 deletions

View File

@ -30,7 +30,12 @@ def guess_bytes(corpus, known_keybytes, num_samps, avg):
if __name__ == '__main__':
known_keybytes = bytes.fromhex("64c7072487f2")
secret_data = "c1a5fe7beb2c70bfab98926627dcff8b9671edc52441f89fa47797aa023f15f67907ee837b93cd9b194922ebb7c3ca3bd1cbfbc888efe147e80554047d82872fcee564c1bfd2e0a809568acb5cc08f4836a5f91f43b576a4ee1c6f097c15e1cd4056917fc51c1e5d8157409b11f1600d"
secret_data = ("c1a5fe7beb2c70bfab98926627dcff8b9671edc5" +
"2441f89fa47797aa023f15f67907ee837b93cd9b" +
"194922ebb7c3ca3bd1cbfbc888efe147e8055404" +
"7d82872fcee564c1bfd2e0a809568acb5cc08f48" +
"36a5f91f43b576a4ee1c6f097c15e1cd4056917f" +
"c51c1e5d8157409b11f1600d")
data = set()
with open("test.txt", "r") as fp: