error: "illegal key size..." thrown when encrypt with RSA

Q

qe_Cui

Hello everyone:

I am using vb.net 2003, sqlserver2000 database, and windows 2000
professional OS.

In the program, I encrypt the login user's userid and passed with
RSACryptoServiceProvider. It is work fine in my compute,

but when i set up it on the client computer(which have assembled IE6.0 SP1,
..net framework 1.1 and MDAC 2.7. and the

crytion key displayed in the IE help is 128-bit), it always throw
error:"illegal key size for this algorithm".

Appreciate for any help!!

Thanks in advance!!!


Thanks

cqe
 
J

Jeff Clark

When you get "illegal key size for this algorithm" for the encrypted login,

that is actually the encryped login. There is about a 1 in 10 billion
chance that the encrypted login would actually be a readable sentence, but
there you go.

Count yourself lucky!
 
J

Jon Skeet [C# MVP]

Jeff Clark said:
When you get "illegal key size for this algorithm" for the encrypted login,

that is actually the encryped login. There is about a 1 in 10 billion
chance that the encrypted login would actually be a readable sentence, but
there you go.

Count yourself lucky!

No, I don't think that's likely to be it. If it's throwing an
exception, that's very different from the result just happening to be
that sentence.

To the OP: Can you come up with a short but complete program which
demonstrates the problem?
 

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

Top