473,503 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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


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

Jul 21 '05 #1
2 2385
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!
"qe_Cui" <qe****@rtisoftware.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

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

Jul 21 '05 #2
Jeff Clark <JeffC@NO_SPAMreturnventures.com> wrote:
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?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
5787
by: MB | last post by:
Hi, I am using a web service to call an asp page on a remote server via System.Net.WebClient . The asp page returns a xml stream persisted from a recordset. I am having problems converting the...
1
1850
by: Dgates | last post by:
This request might belong in a "SQL"-related newsgroup, but it's such a pain using Agent to subscribe to a new group (and download its 50,000 messages!) just to ask one question. So, since it...
0
1124
by: qe_Cui | last post by:
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(is "sa") and passed(is "sa") with...
2
312
by: qe_Cui | last post by:
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....
1
5304
by: Paul W | last post by:
I attempted to find the solution and came close (http://blogs.msdn.com/robgruen/archive/2005/01/24/359660.aspx) but cannot go any further. I have an ASP.NET (2003/C#) app that calls a VB 6 DCOM on...
26
6246
by: drako | last post by:
Hi, I'm a bit stumped as I am getting a "Notice: Array to String Conversion" error when trying to do something that on the surface should be a very simple task - create an array, and write a set...
3
17120
by: klaritydefect | last post by:
Hi, I am receving the following error when I run my application (build on C ++ code) Program received signal SIGSEGV, Segmentation fault si_code: 1 - SEGV_MAPERR - Address not mapped to...
2
3226
by: muslimak | last post by:
I have a perl script that throws an error "illegal division by zero" chunk 37. FYI, this script was the one that worked fine two days back. There is no change in the script. Can anyone tell...
14
8440
Frinavale
by: Frinavale | last post by:
I've been trying to test my web application using Internet Explorer 8 (release candidate 1) and have been experiencing some major problems. I'm hoping you can help me with this one. I have a...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.