PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Sep 19, 2019 12:38 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Sep 17, 2012 2:24 pm 
Offline
Forum Contributor
User avatar

Joined: Tue Mar 30, 2004 5:24 am
Posts: 433
Location: London, UK
Hi everyone

Currently I hash passwords using 512bits of per-user salt from /dev/urandom, 512bits of "pepper" from /dev/urandom which is stored in the file system, then hashed using PHP's hash() function and SHA-512.

But I've been reading that perhaps I should be doing this with crypt() and CRYPT_BLOWFISH instead going forward (I believe this is referred to as bcrypt)?
Using something like ?

Cheers, B


Top
 Profile  
 
PostPosted: Mon Sep 17, 2012 2:47 pm 
Offline
Forum Regular
User avatar

Joined: Wed Mar 05, 2008 11:23 pm
Posts: 732
Location: Sunriver, OR
You dont have to use phpass, you can use the build in crypt() functions.

I've been doing some reading myself, and think I will be heading that way with my next login mechanism as well.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group