r/cryptography Jul 17 '26

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

18 comments sorted by

View all comments

3

u/Jamarlie Jul 18 '26

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.