This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Security and the fly likes Encrypt large SealedObject Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "Encrypt large SealedObject" Watch "Encrypt large SealedObject" New topic
Author

Encrypt large SealedObject

Pan Niko
Ranch Hand

Joined: Mar 19, 2011
Posts: 86

Hello,

I'm trying to create a SealedObject that contains a Serializable object and a cipher that initialise with RSA. I want to create a pair of keys for each user, so that's why I'm using RSA. I'm getting an Exception when trying to encrypt this object and I know that the reason is because key's size. My question is how I can create a SealedObject that will contains an Object[] (with two integers and a SecretKey) and encrypt it using user's public key?

Thanks in advance,
toto_7
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32833
    
    4
Too difficult a question for “beginning”. Moving to security forum.
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 819

Pan Niko wrote:Hello,

I'm trying to create a SealedObject that contains a Serializable object and a cipher that initialise with RSA. I want to create a pair of keys for each user, so that's why I'm using RSA. I'm getting an Exception when trying to encrypt this object and I know that the reason is because key's size. My question is how I can create a SealedObject that will contains an Object[] (with two integers and a SecretKey) and encrypt it using user's public key?

Thanks in advance,
toto_7


Can you post the code that you've tried. I'd like to see how you create the cipher you use for encrypting the sealedObject
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Encrypt large SealedObject
 
Similar Threads
Passing Public Key
Class of an object
how to cnecrypt password and stored in database
How to multiple-part encrypt a String with RSA?
BadPaddingException with DES