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

  • Thread starter Thread starter qe_Cui
  • Start date Start date
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
 
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!
 
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?
 
Back
Top