Thread: encryption / decryption

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    1

    Question encryption / decryption

    Hello,

    do you know where can i find a simply example in C++ using the MD5CryptoServiceProvider Class( MD5CryptoServiceProvider Class (System.Security.Cryptography) )

    Thank you.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Use the examples at the end of that page perhaps.

    Oh wait, it's only available in VB.
    I guess you'll either have to keep searching the web or buckle down to a bit of actual work in converting it.

    It can't be that hard, the method names are the same, and you can probably guess the rest. What remains is just a bit of syntax patching (begin / end being respective braces for example).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    I see one in C++ .NET on that page:
    Code:
    private:
       array<Byte>^ MD5hash( array<Byte>^data )
       {
          // This is one implementation of the abstract class MD5.
          MD5^ md5 = gcnew MD5CryptoServiceProvider;
    
          array<Byte>^ result = md5->ComputeHash( data );
    
          return result;
       }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Execution Time - Rijandael encryption
    By gamer4life687 in forum C++ Programming
    Replies: 5
    Last Post: 09-20-2008, 09:25 PM
  2. encryption / decryption program
    By epidemic in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2008, 06:40 AM
  3. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  4. Encryption and Decryption Program in C++ using a class
    By goron350 in forum C++ Programming
    Replies: 7
    Last Post: 06-05-2005, 09:29 PM
  5. Ask about Encryption and Decryption
    By ooosawaddee3 in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 12:55 AM