Iqiyi::getVRSXORCode PHP Méthode

getVRSXORCode() private static méthode

private static getVRSXORCode ( $_arg1, $_arg2 )
    private static function getVRSXORCode($_arg1, $_arg2)
    {
        $_local3 = $_arg2 % 3;
        if ($_local3 == 1) {
            return $_arg1 ^ 121;
        }
        if ($_local3 == 2) {
            return $_arg1 ^ 72;
        }
        return $_arg1 ^ 103;
    }

Usage Example

Exemple #1
0
 private static function getVrsEncodeCode($_arg1)
 {
     $_local6;
     $_local2 = "";
     $_local3 = explode("-", $_arg1);
     $_local4 = count($_local3);
     $_local5 = $_local4 - 1;
     while ($_local5 >= 0) {
         $_local6 = Iqiyi::getVRSXORCode(intval($_local3[$_local4 - $_local5 - 1], 16), $_local5);
         $_local2 = Iqiyi::fromCharCode($_local6) . $_local2;
         $_local5--;
     }
     return $_local2;
 }