Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


How to hash password correctly in PHP? filter_list
Author
Message
How to hash password correctly in PHP? #1
Hey, I am working on an authentication system, and therefor I find the need to hash the passwords like one should do.

So what I am wondering, how would one go about hashing a password in PHP. I guess there are multiple methods. The tutorial I am using is currently using
Code:
password_hash($password, PASSWORD_DEFAULT);

Thanks ^.^

Reply

RE: How to hash password correctly in PHP? #2
In my opinion everyone should use BlowFish
In php you can get the hash by:
Code:
$hash = password_hash($passwod,CRYPT_BLOWFISH);
And you verify it with:
Code:
password_verify($password,$hash)

Reply

RE: How to hash password correctly in PHP? #3
Salt your hashes and check out https://www.youtube.com/user/Computerphile
[Image: tm06mQ3.gif]
If my threads help you feel free to Like and Rep
Keybase | https://keybase.io/ecks  ProtonMail | n3r0nu77@protonmail.com  Steam | Nu77v47u3  Discord | Ecks#2162


Reply

RE: How to hash password correctly in PHP? #4
(05-29-2017, 10:38 PM)n3r0x1d3 Wrote: Salt your hashes and check out https://www.youtube.com/user/Computerphile

I am already subscribed to that channel, which videoes are you recommending that I watch? The ones from Tom Scott?

Reply

RE: How to hash password correctly in PHP? #5
Tom's https://www.youtube.com/watch?v=b4b8ktEV...ZVoctP2ehL is good, but I also recommend Dr. Mike's updates like https://www.youtube.com/watch?v=7U-RbOKanYs or https://www.youtube.com/watch?v=ciNHn38EyRc , Then again I recommend all of their videos for everyone lol.
[Image: tm06mQ3.gif]
If my threads help you feel free to Like and Rep
Keybase | https://keybase.io/ecks  ProtonMail | n3r0nu77@protonmail.com  Steam | Nu77v47u3  Discord | Ecks#2162


Reply

RE: How to hash password correctly in PHP? #6
(05-29-2017, 11:14 PM)n3r0x1d3 Wrote: Tom's https://www.youtube.com/watch?v=b4b8ktEV...ZVoctP2ehL is good, but I also recommend Dr. Mike's updates like https://www.youtube.com/watch?v=7U-RbOKanYs or https://www.youtube.com/watch?v=ciNHn38EyRc , Then again I recommend all of their videos for everyone lol.

I am quite sure I have watched both of them

Reply

RE: How to hash password correctly in PHP? #7
This tut might be of worth looking as well, https://crackstation.net/hashing-security.htm
[Image: tm06mQ3.gif]
If my threads help you feel free to Like and Rep
Keybase | https://keybase.io/ecks  ProtonMail | n3r0nu77@protonmail.com  Steam | Nu77v47u3  Discord | Ecks#2162


Reply

RE: How to hash password correctly in PHP? #8
(05-30-2017, 06:49 AM)n3r0x1d3 Wrote: This tut might be of worth looking as well, https://crackstation.net/hashing-security.htm

It was a nice tut, but I am still not 100% sure how I would do it in a good manner

Reply

RE: How to hash password correctly in PHP? #9
Im hashing passwords on my websites/scripts using double md5 + salt and i personally prefer this way.

Reply

RE: How to hash password correctly in PHP? #10
(08-25-2017, 09:51 PM)Jakub Wrote: Im hashing passwords on my websites/scripts using double md5 + salt and i personally prefer this way.

md5 is not really secure though is it?

Reply







Users browsing this thread: 1 Guest(s)