943,096 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1360
  • Java RSS
Jan 20th, 2010
0

Using fixed Key-pair for Encryption/Decryption

Expand Post »
Hi

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ashwin1985 is offline Offline
7 posts
since Jan 2010
Jan 20th, 2010
0
Re: Using fixed Key-pair for Encryption/Decryption
I'm a bit confused by this. You seem to be wanting to give people an encrypted file and a decrypter with the key already filled in. Why bother encrypting in the first place?
But if that's what you want - just store your keys somewhere - eg a file that's included in your jar, or even in the source code.
Featured Poster
Reputation Points: 1895
Solved Threads: 944
Posting Expert
JamesCherrill is offline Offline
5,741 posts
since Apr 2008
Jan 21st, 2010
0
Re: Using fixed Key-pair for Encryption/Decryption
Exactly, I want to know how we can store the Key objects generated once, for further use.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ashwin1985 is offline Offline
7 posts
since Jan 2010
Jan 21st, 2010
0
Re: Using fixed Key-pair for Encryption/Decryption
Featured Poster
Reputation Points: 1895
Solved Threads: 944
Posting Expert
JamesCherrill is offline Offline
5,741 posts
since Apr 2008
Jan 21st, 2010
0
Re: Using fixed Key-pair for Encryption/Decryption
thanks james..that was of great help !
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ashwin1985 is offline Offline
7 posts
since Jan 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Jpanel event listener
Next Thread in Java Forum Timeline: Casting an object to an unknown type to access its methods





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC