Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

encrypted data same length as unencrypted data ?

843811May 10 2009 — edited May 13 2009
Is it possible to encrypt a data block and have the encrypted data be the same length as the original data ?

I am working with a legacy system that has a data field that I would like to encrypt prior to storing it. This data is stored to a fixed size storage (i.e. barcode). So in order to store the encrypted version of the data into the barcode it must be the same size as the original data. I can not change the size of the barcode.

Are any of the encryption algorithms that can do this ? Ideally, a public key algorithm.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2009
Added on May 10 2009
14 comments
643 views