Re: Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm
From: Pieter Philippaerts (pieter_at_nospam.mentalis.org)
Date: 04/26/03
- Previous message: Mike Moore [MSFT]: "RE: UNC file share and NTLM user identity"
- In reply to: HaukiDog: "Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm"
- Next in thread: HaukiDog: "Re: Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm"
- Reply: HaukiDog: "Re: Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm"
- Reply: HaukiDog: "Re: Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 26 Apr 2003 03:27:06 +0200
"HaukiDog" <HaukiDog@hotmail.com> wrote in message
> I am familiar with the
> System.Security.Cryptography.SymmetricAlgorithm class, but am not sure
> how to map my exisiting algorithm to one of the readily available
> derived algorithms: DES, RC2, Rijndael, or TripleDES.
In the original VB6 code you're using the RC4 algorithm to encrypt your data
and the MD5 algorithm to hash the data.
The MD5 hash algorithm is implemented in the MD5CryptoServiceProvider class
[from the System.Security.Cryptography namespace], however the RC4 algorithm
has not been wrapped up in the .NET framework.
However we have a free library that has an implementation of the RC4
algorithm [it's called the ARCFour algorithm in the documentation because
RSA security Inc. has a trademark on the name RC4]. You can download this
library over here: http://www.mentalis.org/soft/projects/seclib/
The ARCFourManaged class [from the Org.Mentalis.Security.Cryptography
namespace] works exactly like the other crypto classes in the .NET framework
and it also inherits from the SymmetricAlgorithm class. It is also
extensively documented [you can view the documentation online at
http://www.mentalis.org/soft/projects/seclib/docs/].
Regards,
Pieter Philippaerts
http://www.mentalis.org/
- Previous message: Mike Moore [MSFT]: "RE: UNC file share and NTLM user identity"
- In reply to: HaukiDog: "Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm"
- Next in thread: HaukiDog: "Re: Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm"
- Reply: HaukiDog: "Re: Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm"
- Reply: HaukiDog: "Re: Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|