Re: how these 2 functions may differ?
- From: "Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx>
- Date: Thu, 8 Jan 2009 09:16:54 -0600
James wrote:
You were already told (correctly) that this code is trash. Why are
you not using the encryption functions built in to Windows?
as for using rc4, its a requirement since what I'm putting together
reads data from an existing system that is already storing the data
in this way, as far as I know there isn't any .net builtin RC4
encryption... as for writting my own translation using more
Windows has RC4 builtin.
http://msdn.microsoft.com/en-us/library/aa375549(VS.85).aspx
CALG_RC40x00006801RC4 stream encryption algorithm. This algorithm is
supported by the Microsoft Base Cryptographic Provider.
As for .NET, it should have been as simple as calling new CryptoAPITransform
and passing the right algid. But that constructor is marked internal. So
you'd have to p/invoke the Windows Cryptography functions directly.
appropriate methods, well, what I got from the 4guysfromrolla.com
site works and I don't program enough to do it myself in a timely
manner, and this is the last piece I need to finish this, which is
long overdue. I'm confident its ok for my scenario.
You're right that crypto is not something you want to do yourself. In a
similar vein, it's not something you want to trust to whatever poorly
written code you found with google.
.
- Follow-Ups:
- Re: how these 2 functions may differ?
- From: James
- Re: how these 2 functions may differ?
- References:
- how these 2 functions may differ?
- From: James
- RE: how these 2 functions may differ?
- From: Family Tree Mike
- Re: how these 2 functions may differ?
- From: James
- Re: how these 2 functions may differ?
- From: Ben Voigt [C++ MVP]
- Re: how these 2 functions may differ?
- From: James
- Re: how these 2 functions may differ?
- From: Ben Voigt [C++ MVP]
- Re: how these 2 functions may differ?
- From: James
- how these 2 functions may differ?
- Prev by Date: Magicmoneyworld
- Next by Date: Re: const objects on a function level?
- Previous by thread: Re: how these 2 functions may differ?
- Next by thread: Re: how these 2 functions may differ?
- Index(es):
Relevant Pages
|