Make this password hash SHA512 or something

griimnak

You're a slave to the money then you die
Jul 20, 2013
957
800
salt:

PHP:
public static function salt($length) {
        return mcrypt_create_iv($length);
    }
self::salt(32);

usage from gHabbo:
p9kHqJF.png
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,934
3,933
Use the function provided by PHP, and don't try and create your own method for hashing passwords; you're not a security expert.

Example:
PHP:
<?php

$password = 'password';

echo password_hash($password, PASSWORD_BCRYPT);

It will also create a salt for you, so please do not attempt to create your own; the ability to will be depreciated in PHP 7 anyways.

You can find all the password hashing functions .
 

griimnak

You're a slave to the money then you die
Jul 20, 2013
957
800
Use the function provided by PHP, and don't try and create your own method for hashing passwords; you're not a security expert.

Example:
PHP:
<?php

$password = 'password';

echo password_hash($password, PASSWORD_BCRYPT);

It will also create a salt for you, so please do not attempt to create your own; the ability to will be depreciated in PHP 7 anyways.

You can find all the password hashing functions .
Thanks for this, i didn't even know this function existed man.
 

Users who are viewing this thread

Top