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!

Encrypt and decrypt using ECB mode

user10070648Aug 9 2012 — edited Aug 13 2012
Dear All,

I'm looking the way to convert special character to hex and perform the encryption

Example : (All are dummy values )

Encryption key = K (Double length and using triple-DES)


Clear test (C) 1234AB=C6578ABE3 -----(Encode) ------------>After encoding the data should 0-F (ABC12E340987EA12) --------(Encrypt using K)------>Ciper data ( ACF1BE547659AC34) ------->and sending to another server.

At server level

Ciper data( ACF1BE547659AC34) ------>(Decrypt using K)------>Getting encoding value (ABC12E340987EA12)-------->(Decode)------>Clear test (C) = 1234AB=C6578ABE3 -----------> and processing


Q1. Is there any encoding method that can be used ?

Note : Really I'm not in position to change length of clear test (such as encoding asciii ) .

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2012
Added on Aug 9 2012
18 comments
2,091 views