encrypt a file with a public key