That's some horrible encryption. Just use blowfish with a salt (and a cost of 10).salt:
self::salt(32);PHP:public static function salt($length) { return mcrypt_create_iv($length); }
usage from gHabbo:
why is it bad? i figured mcrypt would be nice for salting since it uses unique charactersThat's some horrible encryption. Just use blowfish with a salt (and a cost of 10).
<?php
$password = 'password';
echo password_hash($password, PASSWORD_BCRYPT);
Thanks for this, i didn't even know this function existed man.Use theYou must be registered for see linksfunction 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 functionsYou must be registered for see links.