Lets say, Person1 has two files: person1.public.key and person1.private.key. This person uses his person1.private.key to encrypt a message and send it to me.
I only have the file person1.public.key, and I want to decrypt the message sent to me.
How to:
- encrypt the message on Person1's side?
- decrypt the message on my side?
I did search online, but all examples I saw was the code generating the keys on runtime. I want to use the keys in the files.