src/Radius.php
public function getChapPassword($password, $chapId, $requestAuthenticator)
    {
        return md5(pack('C', $chapId) . $password . $requestAuthenticator, true);
    }
public function getChapPassword($password, $chapId, $requestAuthenticator)
    {
        return md5(pack('C', $chapId) . $password . $requestAuthenticator, true);
    }
public function getChapPassword ( $ password , $ chapId , $ requestAuthenticator ) { return md5 ( pack ( 'C' , $ chapId ) . $ password . $ requestAuthenticator , true ) ; }
Generate a CHAP password.  There is generally no need to call this method directly.

@param string $password  The password to hash using CHAP
@param int    $chapId    The CHAP packet ID
@param string $requestAuthenticator  The request authenticator value
@return string The hashed CHAP password
Generate a CHAP password . There is generally no need to call this method directly .