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 data
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
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 data
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
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?