You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a sftp connexion, I want to use the internal crypto engine instead of the mcrypt engine.
So I do :
$client = new SFTP($myHost, $myPort);
$client->setCryptoEngine(1);// method in SSH2 class
$client->login($username, $password);
And then I got the error :
Attempted to call an undefined method named "setEngine" of class "phpseclib\Crypt\RC4"
I think it is because of this :
$this->encrypt->setEngine($this->crypto_engine); // in SSH2 class at line 1823
There is no method setEngine in the project, only _setEngine which is private, so I think It should be replace by :
$this->encrypt->setPreferredEngine($this->crypto_engine);
I'm not confortable with git so I don't know how to do this change by myself. Can someone do the fix ?
The text was updated successfully, but these errors were encountered:
By the way I would like to know if someone knows how to set the cipher to use when using the SFTP class ?
There's not really a good way to do this atm. I do intend to significantly revamp the SSH2 API at some point but my priorities atm are on updating phpseclib's underlying cryptographic primitives.
Hello,
In a sftp connexion, I want to use the internal crypto engine instead of the mcrypt engine.
So I do :
$client = new SFTP($myHost, $myPort);
$client->setCryptoEngine(1);// method in SSH2 class
$client->login($username, $password);
And then I got the error :
Attempted to call an undefined method named "setEngine" of class "phpseclib\Crypt\RC4"
I think it is because of this :
$this->encrypt->setEngine($this->crypto_engine); // in SSH2 class at line 1823
There is no method setEngine in the project, only _setEngine which is private, so I think It should be replace by :
$this->encrypt->setPreferredEngine($this->crypto_engine);
I'm not confortable with git so I don't know how to do this change by myself. Can someone do the fix ?
The text was updated successfully, but these errors were encountered: