I was having trouble getting the encrypt/decrypt functions to work
properly.  I'm sure I'm just doing something wrong, but I'm not sure
what the 'right way' is..  I can get the calls to work in the h2
console fine, but when I run them through my java code, but if I use
PreparedStatement.setCharacterStream(int, new StringReader
(mEncryptedValue)) when doing the decryption, it fails.

What am I doing wrong with the prepared statement that the encrypted
value is getting garbled on the way in to h2?   Code below.

Thanks for any pointers,

earth

Here's my code.  Replace "cCrypDataDatabase.getDBConnection()" with a
valid h2 connection object.  The output I get from this is:

original value: this that
decrypted with ? + setCharacterStream:&>?Hq
???n  K? ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to