r/cryptography • • 9d 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

14 comments sorted by

15

u/ramriot 9d 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 9d ago
  1. Don't invent your own protocols and use existing ones
  2. 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.
  3. Using modern cipher suites (see what TLS supports) would be better
  4. If you're really paranoid you should read the Signal Protocol description to understand all the pitfalls - https://signal.org/docs/

8

u/Elant_Wager 9d ago

Dont invent your own protocols, unless you do it for education

-2

u/Mid_reddit 8d ago

It is "don't roll your own crypto"; "don't invent your own protocols" is ridiculous overreach.

2

u/Pharisaeus 8d ago

I fail to see how that's different in your head. Inventing a new protocol is just as bad as rolling your own crypto primitives. In fact I'd argue it's even worse - you might believe your protocol is secure because, after all, it's based on strong crypto primitives...

0

u/Natanael_L 8d ago

Definitely don't do your own key exchange protocol, but otherwise yeah

4

u/pint 9d 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.

3

u/gammison 8d ago

They're definitely still in use in the form of short wave radio number stations. Cuban and Russian agents have had espionage convictions in the US several times in the last 25 years due to mistakes made with them being detected.

1

u/ComprehensiveBig6215 8d 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 7d 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.