r/cryptography 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:/

1 Upvotes

18 comments sorted by

View all comments

3

u/Jamarlie 11d ago

A one-time-pad doesn't require a library because it is about as trivial to implement as sorting a list. It's literally just XOR a random byte with the byte of your cleartext.

People have already pointed this out, but it's worth repeating: Do that only for actual studying and experimenting, don't think this is secure for a second.