+ Reply to Thread
Page 4 of 4 FirstFirst ... 234
Results 31 to 32 of 32

Thread: MD5 Hash

  1. #31
    Hunter100 is offline Programming Professional
    Join Date
    Feb 2010
    Location
    Australia
    Posts
    289
    Rep Power
    0

    Re: MD5 Hash

    Hey all,

    The main function is like this right? (for example):

    Code:
    int main ()
    So I input (minus the comments):

    Code:
    // This will allow us to access the md5wrapper class.
    md5wrapper md5;
    // This will store the md5 hash of a file called test.txt in a string hash1
    std::string hash1 = md5.getHashFromFile("test.txt");
    // This will store the md5 hash of some text into a string hash2
    std::string hash2 = md5.getHashFromString("Hello World");
    // This will print, the hash from the file and from the string
    std::cout << hash1 << std::endl; << hash2 std::endl;
    system("PAUSE"); // Remove if your using Linux.
    return 0;
    In the main function (like between the brackets) or in the main body of the code (in between the {} and the beginning and the end of the code)?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #32
    chris06 is offline Newbie
    Join Date
    Sep 2010
    Posts
    1
    Rep Power
    0

    Re: MD5 Hash


+ Reply to Thread
Page 4 of 4 FirstFirst ... 234

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hash Cryptography, why so speedy?
    By liamzebedee in forum General Programming
    Replies: 6
    Last Post: 06-21-2011, 11:59 PM
  2. Hash tables
    By camouser1s in forum C and C++
    Replies: 2
    Last Post: 03-29-2011, 11:20 AM
  3. Pascal: The hash symbol?
    By FireGator in forum Pascal and Delphi
    Replies: 2
    Last Post: 09-11-2010, 10:50 AM
  4. Help Returning a Hash
    By BlackMage in forum Java Help
    Replies: 0
    Last Post: 01-18-2010, 05:28 AM
  5. Password hash
    By im-not-alive in forum Database & Database Programming
    Replies: 8
    Last Post: 12-28-2007, 11:49 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts