Re: Converting CryptAcquireContext -> System.Security.Cryptography.SymmetricAlgorithm

From: Pieter Philippaerts (pieter_at_nospam.mentalis.org)
Date: 04/26/03

  • Next message: Steve Smith: "Re: Newbie - ASP.NET web service IIS 5.1 access problem"
    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/


  • Next message: Steve Smith: "Re: Newbie - ASP.NET web service IIS 5.1 access problem"

    Relevant Pages

    • Re: Patents Unleashed and the future of Java Programming
      ... Have you ever seen documented an algorithm for determining the number ... However, I disqualify "reading coworkers code", "looking at ... Even the most anal retentive documentation efforts (I've worked on ...
      (comp.lang.java.programmer)
    • Re: fmincon constraints: why do inequality constraints fail but bound
      ... cannot formulate this constraint of positivity with linear ... Thus there is no way to make it clear on the documentation ... This is why at the first place algorithm is given out: ...
      (comp.soft-sys.matlab)
    • Re: Cobol work?
      ... >>I doubt that 'internal documentation' that is only intended for a ... > particular algorithm or logic was used can be quite useful. ... Given infinite time, knowledge and ...
      (comp.lang.cobol)
    • Re: How does contour work?
      ... Is it an implementation of an existing algorithm ... (e.g. TOMS)? ... the documentation, no great secrets would be revealed by ...
      (comp.soft-sys.matlab)