public static function createHash($string) {
		$salt = substr(str_replace('+', '.', base64_encode(pack('N4', mt_rand(), mt_rand(), mt_rand(), mt_rand()))), 0, 22);
		return crypt($string, '$2a$10$' . $salt . '$'); // we use Blowfish with a cost of 10
	}