J
JavaEnquirer
I'm reading textual data out of an SQL Server 2005 database. This works
fine as you'd expect, however, when I attempt to decrypt encrypted
String data
read out of the database using the Java cryptography classes I get the
following error:
javax.crypto.IllegalBlockSizeException: Input length must be multiple
of 8 when decrypting with padded cipher
When I manipulate the Strings locally, encrypting and decrypting them
back, everything is fine. The seems to be some hidded problem with the
Strings extracted from the database.
Any one got any ideas? One theory I have concerns the fact that SQL
Server 2005 uses USC-2 encoding whereas the decrypter expects UTF-8.
Could this be at the heart of the problem? If so, how would I go about
converting a USC-2 String into a UTF-8 encoded String?
fine as you'd expect, however, when I attempt to decrypt encrypted
String data
read out of the database using the Java cryptography classes I get the
following error:
javax.crypto.IllegalBlockSizeException: Input length must be multiple
of 8 when decrypting with padded cipher
When I manipulate the Strings locally, encrypting and decrypting them
back, everything is fine. The seems to be some hidded problem with the
Strings extracted from the database.
Any one got any ideas? One theory I have concerns the fact that SQL
Server 2005 uses USC-2 encoding whereas the decrypter expects UTF-8.
Could this be at the heart of the problem? If so, how would I go about
converting a USC-2 String into a UTF-8 encoded String?