Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / October 2005

Tip: Looking for answers? Try searching our database.

"Microsoft Base Cryptographic Provider v1.0" does not work on Win2000

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oleg Shadrunov - 03 Oct 2005 14:58 GMT
Hi, All!

Following code works on Windows XP SP2/SP1 (eng, IE 6.0.2900.2180), but does
not work on Windows 2000 SP4 (eng, IE 5.00.3700.1000). On both system .NET
Framework 1.1.4 is installed.

CspParameters csp = new CspParameters();

csp.KeyContainerName = "OC_AS_asax_1_11";

csp.ProviderType=1;

csp.ProviderName="Microsoft Base Cryptographic Provider v1.0";

csp.Flags = CspProviderFlags.UseMachineKeyStore;

RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(1024,csp);

byte[] buf = new byte[58];

byte[] ebuf=rsa.Encrypt(buf, false);

"Bad key" exception throws when Encrypt is called. It works only when I
replace "Microsoft Base Cryptographic Provider v1.0" with "Microsoft
Enhanced Cryptographic Provider v1.0". Why? Does anybody know what is the
problem?
Valery Pryamikov - 04 Oct 2005 22:16 GMT
Hi,
Base Cryptographic Provider doesn't support RSA encryption keys stronger
than 512 bits. This provider is reminders of last century's USA strong
crypto exporting restrictions and it should not be used nowadays - use
Strong or Enhanced providers instead.

-Valery.
http://www.harper.no/valery

> Hi, All!
>
[quoted text clipped - 22 lines]
> Enhanced Cryptographic Provider v1.0". Why? Does anybody know what is the
> problem?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.