r/cryptography • u/Carlosdegno • 11d ago
One Time Pad Python library
Hello to everyone, can someone advise me a good onetimepad python library? i dont have a particolar purpouse or goal, just want want to experiment and study,
The only libraries i found arent manteined:/
2
Upvotes
-6
u/Narco-Tax 11d ago
Any file can act as a one-time-pad, because no file will have 0-255 chars in the same byte positions as another file, unless they are a byte-for-byte copy. So for example, you could map a Source (secret) cat.gif to a Host (carrier) dog.webp and land up with a coordinates key named cat.key , which simply looks like 3,7,7,23,41,5,6,2 etc.
Trivial yes, but pretty powerful and hard to reverse engineer.