public static function createPasswordHash($hashAlgorithm, $hashEncoding, $hashCharset, String $name, String $password, $callback)
    {
        $newPassword = clone $password;
        return $newPassword->md5();
    }
public static function createPasswordHash($hashAlgorithm, $hashEncoding, $hashCharset, String $name, String $password, $callback)
    {
        $newPassword = clone $password;
        return $newPassword->md5();
    }
public static function createPasswordHash ( $ hashAlgorithm , $ hashEncoding , $ hashCharset , String $ name , String $ password , $ callback ) { $ newPassword = clone $ password ; return $ newPassword -> md5 ( ) ; }
Creates and returns a hashed version of the passed password.

@param string                   $hashAlgorithm The hash algorithm to use
@param string                   $hashEncoding  The hash encoding to use
@param string                   $hashCharset   The hash charset to use
@param \AppserverIo\Lang\String $name          The login name
@param \AppserverIo\Lang\String $password      The password credential
@param mixed                    $callback      The callback providing some additional hashing functionality

@return \AppserverIo\Lang\String The hashed password
Creates and returns a hashed version of the passed password .