Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2009, 09:37 PM   PM User | #1
four0four
Regular Coder

 
Join Date: Jun 2008
Posts: 104
Thanks: 71
Thanked 0 Times in 0 Posts
four0four is an unknown quantity at this point
Arrow SHA-512 vs Whirlpool?

I'm using the following to create a password hash:

Code:
$password = hash('sha512',$pass . $salt);
but when choosing SHA-512 over Whirlpool, is one better than the other?

Thanks!
four0four is offline   Reply With Quote
Old 12-17-2009, 07:31 PM   PM User | #2
four0four
Regular Coder

 
Join Date: Jun 2008
Posts: 104
Thanks: 71
Thanked 0 Times in 0 Posts
four0four is an unknown quantity at this point
I'm using a random password and salt to create the hash, so maybe it doesn't matter which one I use?
four0four is offline   Reply With Quote
Old 10-04-2011, 01:37 PM   PM User | #3
laresistance2
New to the CF scene

 
Join Date: Sep 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
laresistance2 is an unknown quantity at this point
Sorry to back this topic but this question interests me also.
I await your answers.
laresistance2 is offline   Reply With Quote
Old 10-04-2011, 04:54 PM   PM User | #4
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,602
Thanks: 2
Thanked 398 Times in 391 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
I haven't seen any evidence that one is a clear winner in terms of security. Using a salted string with both should produce a very secure hash. Whirlpool is newer & not used as much(in my experience) and SHA512 is generated faster, so I would go with SHA512. You could definitely argue that the difference is negligible, though, from what I've read.
Inigoesdr is offline   Reply With Quote
Old 10-04-2011, 04:56 PM   PM User | #5
hinch
Regular Coder

 
hinch's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 921
Thanks: 25
Thanked 79 Times in 79 Posts
hinch is on a distinguished road
be wary if your application links to other languages specifically passing hashes to c# apps for decryption there's padding issues to be had since php and .net handle byte padding differently.
__________________
A programmer is just a tool which converts caffeine into code

My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
My hobby: http://www.angel-computers.co.uk
My life: http://www.furious-angels.com
hinch is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:33 PM.


Advertisement
Log in to turn off these ads.