PHP Tutorials: MD5 Encryption

Posted by: Admin  :  Category: Php

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Encrypting string data to an MD5 hash with PHP, and how to compare a value to an already encrypted password WEBSITE phpacademy.org FORUM http TWITTER twitter.com FACEBOOK www.facebook.com
Video Rating: 4 / 5

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

10 Responses to “PHP Tutorials: MD5 Encryption”

  1. ivands16 Says:

    This isn’t encrypting a string.
    Its called hashing.

    Also MD5 should not be used anymore.
    Use some sha function.

    and of course use a salt.

  2. Myztik7 Says:

    @w1shEX You can make a rainbow table for any hash algorithm, that’s one of the reasons why you should be using a unique salt for every hash.

    But yeah, you’re right. crypt() with blowfish is the way to go, or use something like phpass

  3. noferblatz Says:

    Line 5: You’re hashing the password, then on line 6 you’re checking to see if it’s empty. It never will be empty, because a hash of an empty string is never empty.

  4. blueprint7000 Says:

    Bcrypt is the best

  5. jozikus Says:

    you could make the script to sleep for ~2 seconds, this way virtually removing the possibility of brute-forcing, IMHO. 🙂

  6. n1tr0b Says:

    SHA512 > SHA256 > SHA1 > MD5.

  7. w1shEX Says:

    Alex, you should really learn crypt(). It’s what everyone in #php suggest I use for any type of encryption.

    MD5 has something called rainbow tables where if someone has a hashed version of a password or something, they can figure out what it is pretty quick.

    Sup on those templating tutorials anyway? 🙂

  8. gavshouse Says:

    Hmm, Hashing isnt encryption although you talked about this i think you should of also said about hash(‘sha512’, $foobar); and the fact that MD5 isnt so secure these days. Also perhaps talk about SALTing the hash.

    My setup is something like this

    hash(‘sha512’, $salt.$password.strrev($password).$salt);

  9. Yamaftw420 Says:

    Watching soon, I love anything that has to do with security so I look forward to this. I already know this will be good since all your tutorials I’ve watched have taught me so much already. Keep up the good videos, we love learning!

  10. sputtnikk11 Says:

    you are the best Alex!

    working on my own spotify software.. this was useful for my security 😀

    (my name is Alex too 😉 )

Leave a Reply

*