module/Core/src/Grid/Core/Installer/Patch.php
protected function createPasswordHash( $password )
    {
        if ( function_exists( 'password_hash' ) )
        {
            return password_hash( $password, PASSWORD_DEFAULT );
        }

        if ( ! defined( 'CRYPT_BLOWFISH' ) )
        {
            throw new Exception\RuntimeException( sprintf(
                '%s: CRYPT_BLOWFISH algorithm must be enabled',
                __METHOD__
            ) );
        }

        return crypt(
            $password,
            ( version_compare( PHP_VERSION, '5.3.7' ) >= 0 ? '$2y' : '$2a' ) .
            '$10$' . $this->createPasswordSalt() . '$'
        );
    }
protected function createPasswordHash( $password )
    {
        if ( function_exists( 'password_hash' ) )
        {
            return password_hash( $password, PASSWORD_DEFAULT );
        }

        if ( ! defined( 'CRYPT_BLOWFISH' ) )
        {
            throw new Exception\RuntimeException( sprintf(
                '%s: CRYPT_BLOWFISH algorithm must be enabled',
                __METHOD__
            ) );
        }

        return crypt(
            $password,
            ( version_compare( PHP_VERSION, '5.3.7' ) >= 0 ? '$2y' : '$2a' ) .
            '$10$' . $this->createPasswordSalt() . '$'
        );
    }
protected function createPasswordHash ( $ password ) { if ( function_exists ( 'password_hash' ) ) { return password_hash ( $ password , PASSWORD_DEFAULT ) ; } if ( ! defined ( 'CRYPT_BLOWFISH' ) ) { throw new Exception \ RuntimeException ( sprintf ( '%s: CRYPT_BLOWFISH algorithm must be enabled' , __METHOD__ ) ) ; } return crypt ( $ password , ( version_compare ( PHP_VERSION , '5.3.7' ) >= 0 ? '$2y' : '$2a' ) . '$10$' . $ this -> createPasswordSalt ( ) . '$' ) ; }
Create password hash

@param   string   $password
@return  string
Create password hash