0Day Forums
How to hash password correctly in PHP? - Printable Version

+- 0Day Forums (https://0day.red)
+-- Forum: Coding (https://0day.red/Forum-Coding)
+--- Forum: PHP (https://0day.red/Forum-PHP)
+--- Thread: How to hash password correctly in PHP? (/Thread-How-to-hash-password-correctly-in-PHP)

Pages: 1 2 3


How to hash password correctly in PHP? - gunning200 - 05-29-2017

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
Hidden Content

Thanks ^.^


RE: How to hash password correctly in PHP? - louped254875 - 05-29-2017

In my opinion everyone should use BlowFish
In php you can get the hash by:
Hidden Content
And you verify it with:
Hidden Content



RE: How to hash password correctly in PHP? - jayaasvb - 05-29-2017

Salt your hashes and check out

[To see links please register here]




RE: How to hash password correctly in PHP? - goldydbdbccooa - 05-29-2017

Quote:(05-29-2017, 10:38 PM)n3r0x1d3 Wrote:

[To see links please register here]

Salt your hashes and check out

[To see links please register here]


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


RE: How to hash password correctly in PHP? - Sirrhiamonaszyiu - 05-29-2017

Tom's is good, but I also recommend Dr. Mike's updates like or , Then again I recommend all of their videos for everyone lol.


RE: How to hash password correctly in PHP? - visional306 - 05-30-2017

Quote:(05-29-2017, 11:14 PM)n3r0x1d3 Wrote:

[To see links please register here]

Tom's is good, but I also recommend Dr. Mike's updates like or , Then again I recommend all of their videos for everyone lol.

I am quite sure I have watched both of them


RE: How to hash password correctly in PHP? - jessaoybqeovy - 05-30-2017

This tut might be of worth looking as well,

[To see links please register here]




RE: How to hash password correctly in PHP? - laying955750 - 05-30-2017

Quote:(05-30-2017, 06:49 AM)n3r0x1d3 Wrote:

[To see links please register here]

This tut might be of worth looking as well,

[To see links please register here]


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


RE: How to hash password correctly in PHP? - knittle79806 - 08-25-2017

Quote:(08-25-2017, 09:53 PM)Sikom Wrote:

[To see links please register here]

Quote: (08-25-2017, 09:51 PM)Jakub Wrote:

[To see links please register here]

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?

i'm working with it for 1 year now and for now it's okay. But i have my own "hash" function so if double md5 with salt fails i will switch to my hash function


RE: How to hash password correctly in PHP? - serenityetcq - 08-25-2017

Quote:(08-25-2017, 09:51 PM)Jakub Wrote:

[To see links please register here]

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?