Cryptography, Elliptic Curves, Rsa, Blockchain, Bitcoin.
and so on. There are two significant issues with this method. First, you have to somehow tell the person that you wish to communicate with, the secret key to break the code and trust them to keep it safe. And second, in this age of computers, this is not very hard to break. We could come up with