Skip to content

Commit

Permalink
[ex1] Added numpy note
Browse files Browse the repository at this point in the history
  • Loading branch information
SaveTheRbtz committed Mar 23, 2012
1 parent 566a5c3 commit a6024e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ex1/decrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def xor_combinations(data):
"""
Returns all posible combinations of XORs between data entries
TODO: use numpy arrays
>>> list(xor_combinations(["AAA","AAA"]))
[('AAA', 'AAA', '\x00\x00\x00')]
>>> list(xor_combinations(["AAA","BBB", "CCCC"]))
Expand Down

0 comments on commit a6024e3

Please sign in to comment.