Les, I wanted to thank you for your help with all this. I'm now successfully encrypting and decrypting values that I can get and set to my persistence system as string values. Your assistance was invaluable, and the information in this thread might be a nice start to the Shiro crypto user manual.
Thanks again, Tauren On Tue, Apr 5, 2011 at 11:59 PM, Les Hazlewood <lhazlew...@apache.org>wrote: > Finally, I think a lot of your frustration can be cleared up by 2 > simple guidelines: > > 1. You shouldn't ever really need to call aString.getBytes() or > aByteSource.getBytes(). > > 2. If you need bytes-->string or string-->bytes behavior (reading > from files or the database and vice versa), you can do that simply: > > a. bytes --> string: aByteSource.toBase64(); > b. string --> bytes: Base64.decode(base64EncodedString); > > Those two things should probably get you all you need. Anything else > will probably just cause confusion. > > HTH, > > Les >