encryption / decryption

This is a discussion on encryption / decryption within the C++ Programming forums, part of the General Programming Boards category; Hello, do you know where can i find a simply example in C++ using the MD5CryptoServiceProvider Class( MD5CryptoServiceProvider Class (System.Security.Cryptography) ...

  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
    32,855
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,657
    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, 10:25 PM
  2. encryption / decryption program
    By epidemic in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2008, 07: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, 10:29 PM
  5. Ask about Encryption and Decryption
    By ooosawaddee3 in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21