Performing a SHA-512 hash on a string

This is a discussion on Performing a SHA-512 hash on a string within the C Programming forums, part of the General Programming Boards category; Hi guys, can anyone tell me how to perform a SHA512 hash on a string? Or actually, just any one-way ...

  1. #1
    mjt
    mjt is offline
    Registered User
    Join Date
    Oct 2005
    Posts
    4

    Performing a SHA-512 hash on a string

    Hi guys,

    can anyone tell me how to perform a SHA512 hash on a string? Or actually, just any one-way encryption/hash function, which is stronger than MD5. I need it for a password i read in via console and store in a database. The password will never have to be decrypted, so that is no concern. Thanks in advance!

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    I hope the following link helps....

    SHA512


    Bob

  3. #3
    mjt
    mjt is offline
    Registered User
    Join Date
    Oct 2005
    Posts
    4
    Thanks for the reply, but no, not really
    I need it for C, and on top of that in linux...

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    mjt
    mjt is offline
    Registered User
    Join Date
    Oct 2005
    Posts
    4
    Think again. Would i have posted a thread without trying to google it first? No, i wouldn't. You try googling that. Tell me when you find something.

  6. #6
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    Well, let me give it another shot. Check out the link.

    Rehash Console app

    Looks like you can port it to Linux..

    Bob

  7. #7
    mjt
    mjt is offline
    Registered User
    Join Date
    Oct 2005
    Posts
    4
    Thanks, i will check the source for that program tomorrow! Looks like it has what i need

  8. #8
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  9. #9
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Quote Originally Posted by mjt
    Think again. Would i have posted a thread without trying to google it first? No, i wouldn't. You try googling that. Tell me when you find something.
    Plenty of people post without searching. So its not unreasonible. Now check the attitude at the login screen.

    Now if you had taken a half second to actually click on their link you'll see that the 3rd link pointed you to a source file using C.

    Or if you searched for SHA-512 you'll find the very first link is a copy of the standard.

    Thread closed due to jerk off OP

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 07:02 AM
  2. String Class
    By BKurosawa in forum C++ Programming
    Replies: 117
    Last Post: 08-09-2007, 02:02 AM
  3. RicBot
    By John_ in forum C++ Programming
    Replies: 8
    Last Post: 06-13-2006, 07:52 PM
  4. Compile Error that i dont understand
    By bobthebullet990 in forum C++ Programming
    Replies: 5
    Last Post: 05-05-2006, 10:19 AM
  5. can anyone see anything wrong with this code
    By occ0708 in forum C++ Programming
    Replies: 6
    Last Post: 12-07-2004, 12:47 PM

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