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 / New Users / July 2007

Tip: Looking for answers? Try searching our database.

CryptoAPI --> Framework?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard Fischer - 19 Jul 2007 13:07 GMT
Hello all

Im trying to port an application (i.e. rewrite it...) to .NET.
To crypt passwords, I used the advapi32.dll. The following
steps were required to Crypt/Decrypt:
- Acquire Context (I'm using RSA)
- Hash the plain Key (using MD5)
- Derive the Key (using RC4)
- De/Crypt the data

Now I'm looking into the System.Security.Crypto... classes to find
out how to retrieve my old data using the knonw pwds - so far with
much confusion and no success.

Can anybode enlighten me on how to use a smilar technique with the
.NET framework to get the same results?

Thanks in advance for any help
Richard
Cezary Nolewajka - 19 Jul 2007 21:58 GMT
Have you thought of using the same API (advapi32.dll) via P/Invoke?

Would that work for you?

Best regards,
Cezary Nolewajka

Consultant | Microsoft Services | Microsoft | Poland

> Hello all
>
[quoted text clipped - 15 lines]
> Thanks in advance for any help
> Richard
Richard Fischer - 20 Jul 2007 22:07 GMT
Hi

> Have you thought of using the same API (advapi32.dll) via P/Invoke?
>
> Would that work for you?

Certainly it would work - but: why then port the application to .NET, if I'd
have to use unmanaged code?

Thanks and greetings
Richard

Rate this thread:







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



©2008 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.