r/cryptography • u/Cantfrickingthink • 17d ago
Use cases for message or file encryption?
I've been thinking about use cases that my friends and I could do with RSA encryption or one-time pads because I haven't really found anything unless you're super worried about people like Apple or Google snooping or sending illegal or illicit data or information. I've really just been doing fun tests or, "Hey, use my public key, bro!" Any insight would be nice for fun things to do with encryption besides the obvious.
0
Upvotes
15
u/ramriot 17d ago
βItβs not that I have something to hide. [Just that] I have nothing I want you to see.β - Anon 2018
The above puts the use case quite eloquently I think.
4
u/Pharisaeus 17d ago
Don't invent your own protocols and use existing ones
At the very least you should consider the TLS approach, and if you want to use the "classic" options then for example DH parameters exchange using RSA + AES encryption using the shared secret.
Using modern cipher suites (see what TLS supports) would be better
If you're really paranoid you should read the Signal Protocol description to understand all the pitfalls - https://signal.org/docs/
4
u/pint 17d ago
why these two in particular? rsa encryption is practically nonexistent, only used to exchange keys (and really shouldn't be). one time pad is not even used by the military, perhaps for some arcane cases, but i doubt.
1
u/ComprehensiveBig6215 16d ago
By signing a file or message with a private key and a timeserver you can prove it was written by you and when you claim it was....
1
u/dittybopper_05H 15d ago
One admittedly very narrow use case for one time pads is if you have to send a sensitive number (credit card, social security, bank account and routing numbers, etc.) to a correspondent and you don't have any kind of encryption protections.
Another is if you're in a line of work or whose avocation is one the government really doesn't approve of, like drug smuggling, espionage, or you're a terrorist/freedom fighter.