The session key used to encrypt the file is random, so it would be highly unusual for two encryptions of the same file to produce the same encrypted data.
The best way to confirm your program is working is to generate your own public/private key pair, do an encryption, and use another tool like GPG to decrypt the file.
Regards,
David
|