Storing byte[] array
Storing byte[] array
- Subject: Storing byte[] array
- From: Drew Thoeni <email@hidden>
- Date: Sat, 26 Mar 2005 17:27:37 -0500
I've successfully implemented the javax.crypto.spec.PBEKeySpec
(password-based encryption) for encrypting key information in my
database. I can encrypt and decrypt with ease now. But wait! I can't
seem to figure out how to store this marvelously encrypted info.
The PBEKeySpec pbeCipher.doFinal() generates a byte[] array, each byte
being a hex value. In any attempt I have made in storing this to the
database, WO converts it to a string and gets very unpredictable
results due to the conversion to non-printable characters.
How is this normally done so it can be store and, importantly,
retrieved in a form that can be converted back?
Regards,
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden