Is there any way I can use a pair of keys(private-public key pair) generated externally for encryption/decryption of files rather than generating a pair of keys for every cycle of encryption/decryption ??
My program requirement is that I need to run an encryption program packaged in a jar file. The decryption can happen at any arbitrary time which should not be dependent on a key. I do not store the key seperately. I wish to hard code the keys in my encryption class so that the same pair of keys(private-public) is used each time.
Any illustrations / ideas on the same?