src/Radius.php
public function setPassword($password)
    {
        $this->password    = $password;
        $encryptedPassword = $this->getEncryptedPassword($password, $this->getSecret(), $this->getRequestAuthenticator());

        $this->setAttribute(2, $encryptedPassword);

        return $this;
    }
public function setPassword($password)
    {
        $this->password    = $password;
        $encryptedPassword = $this->getEncryptedPassword($password, $this->getSecret(), $this->getRequestAuthenticator());

        $this->setAttribute(2, $encryptedPassword);

        return $this;
    }
public function setPassword ( $ password ) { $ this -> password = $ password ; $ encryptedPassword = $ this -> getEncryptedPassword ( $ password , $ this -> getSecret ( ) , $ this -> getRequestAuthenticator ( ) ) ; $ this -> setAttribute ( 2 , $ encryptedPassword ) ; return $ this ; }
Set the User-Password for PAP authentication.
Do not use this if you will be using CHAP-MD5, MS-CHAP v1 or MS-CHAP v2 passwords.

@param string $password  The plain text password for authentication
@return \Dapphp\Radius\Radius
Set the User - Password for PAP authentication . Do not use this if you will be using CHAP - MD5 MS - CHAP v1 or MS - CHAP v2 passwords .