https://ita.ee.lbl.gov/html/contrib/attack50/attack50.html – Thoughts on How to Mount an Attack on tcpdpriv's -A50 Option
Es existieren zwei Packages:
pip install pycryptopan
- funktioniert nicht, Python2?pip install yacryptopan
- funktioniert auch mit IPv6>>> from yacryptopan import CryptoPAn >>> cp = CryptoPAn(b'32-char-str-for-AES-key-and-pad.') >>> cp.anonymize('192.0.2.1') # Test the key from the C++ reference implementation: >>> a = (21,34,23,141,51,164,207,128,19,10,91,22,73,144,125,16,216,152,143,131,121,121,101,39,98,87,76,45,42,132,34,2) >>> c = bytes(a) >>> cp = CryptoPAn(c) # Test the randomness for the first oktett for i in range(0,256): ... s = (str(i)+".1.1.1") ... print(s + " -> ", end=""); cp.anonymize(s)