I am very new to cryptography and I need some expert suggestions to deal with my scenario. Also forgive my ignorance.
I need a way to encrypt a file and give it to receiver. The receiver can decrypt the file and read the content but should not be able to change it. Sort of like a license file.
From the knowledge i got reading about encryption for the past 2 days (PGP encryption) is that file can be encrypted using a public key and the receiver can only decrypt using their private key. If the reviver has the private key then I am guessing they could change the content of the file as well?
In my case the receiver should be able to decrypt using public key (only read the content and not change it) and the private key should stay with the sender. Is this scenario possible? Would signing the file with senders private key help?
Thanks in advance.