phpseclib\Crypt\Common\PKCS1::setEncryptionAlgorithm PHP Method

setEncryptionAlgorithm() static public method

Sets the default encryption algorithm
static public setEncryptionAlgorithm ( string $algo )
$algo string
    static function setEncryptionAlgorithm($algo)
    {
        self::$defaultEncryptionAlgorithm = $algo;
    }