• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Storing byte[] array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Storing byte[] array
      • From: Zak Burke <email@hidden>
    • Re: Storing byte[] array
      • From: Mark Morris <email@hidden>
  • Prev by Date: Re: WOCheckboxMatrix and Cellpading/Cellspacing
  • Next by Date: Re: WOCheckboxMatrix and Cellpading/Cellspacing
  • Previous by thread: Re: WOCheckboxMatrix and Cellpading/Cellspacing
  • Next by thread: Re: Storing byte[] array
  • Index(es):
    • Date
    • Thread