Category "phpseclib"

How to avoid executing commands as root using phpseclib's library?

Currently I'm executing all commands as root, which is a very bad idea and unsafe as I read. I want to execute the commands in a secure way. An example of curre

virtctl works when executed via command line but not from php exec()

I am trying to run kubectl virt commands to manage my virtual machine via PHP. First, I log in to my server with phpseclib with the following code: $ssh = new S

Exact alternate to mcrypt_encrypt in PHP 7.2

Since mcrypt_encrypt is no longer supported in PHP 7.2, I am trying for exact alternate to this function. After reading many SO answers I have found the foll

phpseclib 2.0 can not use Composer to create autoload

I work for a company that has our servers and computer locked down tighter than ... well imagine something really tight. This means I can not use composer or in