public static function getHashedPasswordWithSalt($password) {
		
		// salt for bcrypt needs to be 22 base64 characters (only [./0-9A-Za-z])
		$salt = substr(str_replace('+', '.', base64_encode(sha1(microtime(true), true))), 0, 22);
		
		// 2a = bcrypt algorithm selector, 12 = the workload factor
		$hash = crypt($password, '$2a$12$' . $salt);
		
		return $hash;

	}
public static function getHashedPasswordWithSalt($password) {
		
		// salt for bcrypt needs to be 22 base64 characters (only [./0-9A-Za-z])
		$salt = substr(str_replace('+', '.', base64_encode(sha1(microtime(true), true))), 0, 22);
		
		// 2a = bcrypt algorithm selector, 12 = the workload factor
		$hash = crypt($password, '$2a$12$' . $salt);
		
		return $hash;

	}
public static function getHashedPasswordWithSalt ( $ password ) { // salt for bcrypt needs to be 22 base64 characters (only [./0-9A-Za-z]) $ salt = substr ( str_replace ( '+' , '.' , base64_encode ( sha1 ( microtime ( true ) , true ) ) ) , 0 , 22 ) ; // 2a = bcrypt algorithm selector, 12 = the workload factor $ hash = crypt ( $ password , '$2a$12$' . $ salt ) ; return $ hash ; }
Creates and returns an Hash for user password adding salt.

@param	string	The user password.
@return	string	Hashed password

@see		http://php.net/crypt
Creates and returns an Hash for user password adding salt .