basically, most of the new websites does not have a big amount of money (that includes me) for doing a high-standard-level-like password hashing, I read a lot says that other password algorithms/hashing uses a lot of memory in GPU or big-sized hashes? Currently I am using sha256, $str, $salt
type of hashing, one of the website posted an article that what I am using is not recommended, I also PBKDF2 alot, but when I read how to do it. It includes sha256/mcrypt_create_iv/md5 etc. I do not understand. So can you give me, what does new websites need for that is low-budget and lowe-sized methods
IS THIS CODE SAFE? I MEAN NOT THAT UNSAFE? is this is okay? is this weak ?
<?php
class Hash {
public static function make($string, $salt = '') {
return hash('sha256', $string . $salt);
}
public static function salt($length) {
return mcrypt_create_iv($length);
}
public static function unique() {
return self::make(uniqid());
}
}
please give me advices and opinions THANK YOU!