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?
Tris Orendorff - 09 Oct 2006 14:31 GMT
> 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
[quoted text clipped - 4 lines]
>
> Any one got any ideas?
Yes! What is your input length?
--
Sincerely,
Tris Orendorff
[Q: What kind of modem did Jimi Hendrix use?
A: A purple Hayes.]