Character encoding

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

Tris Orendorff

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?

Yes! What is your input length?

--
Sincerely,

Tris Orendorff
[Q: What kind of modem did Jimi Hendrix use?
A: A purple Hayes.]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top