source/Application/Model/User.php
public function encodePassword($sPassword, $sSalt)
    {
        /** @var oxSha512Hasher $oSha512Hasher */
        $oSha512Hasher = oxNew('oxSha512Hasher');
        /** @var oxPasswordHasher $oHasher */
        $oHasher = oxNew('oxPasswordHasher', $oSha512Hasher);

        return $oHasher->hash($sPassword, $sSalt);
    }
public function encodePassword($sPassword, $sSalt)
    {
        /** @var oxSha512Hasher $oSha512Hasher */
        $oSha512Hasher = oxNew('oxSha512Hasher');
        /** @var oxPasswordHasher $oHasher */
        $oHasher = oxNew('oxPasswordHasher', $oSha512Hasher);

        return $oHasher->hash($sPassword, $sSalt);
    }
public function encodePassword ( $ sPassword , $ sSalt ) { /** @var oxSha512Hasher $oSha512Hasher */ $ oSha512Hasher = oxNew ( 'oxSha512Hasher' ) ; /** @var oxPasswordHasher $oHasher */ $ oHasher = oxNew ( 'oxPasswordHasher' , $ oSha512Hasher ) ; return $ oHasher -> hash ( $ sPassword , $ sSalt ) ; }
Encodes and returns given password

@param string $sPassword password to encode
@param string $sSalt     any unique string value

@deprecated since v6.4.0 (2019-03-15); This method will be removed completely. Use PasswordServiceBridgeInterface

@return string
Encodes and returns given password