阅读背景:

JAVA版Base64源码-JEB反编译后的结果

来源:互联网 

JAVA版Base64源码-JEB反编译后的结果:

package o;

public final class yr_Base64 {
    private static char[] ˎ_encodingTable;
    private static byte[] ˏ_decodingTable;

    static {
        yr_Base64.ˎ_encodingTable = new char[]{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/', '='};
        yr_Base64.ˏ_decodingTable = new byte[]{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
    }

    public yr_Base64() {
        super();
    }

    public static String ˋ_encode(byte[] arg1) {
        return yr_Base64.ॱ_encode(arg1, arg1.length);
    }

    public static byte[] ˎ_decode(String argString) {
        int tmp1;
        int tmp;
        String encodeString = argString;
        int len = argString.length();
        int index;
        for(index = 0; index < encodeString.length(); ++index) {
            tmp = encodeString.charAt(index);
            tmp1 = tmp;
            if(tmp > 255 || yr_Base64.ˏ_decodingTable[tmp1] < 0) {
                --len;
            }
        }

        int len = len;
        len = len / 4 * 3;
        if(len % 4 == 3) {
            len += 2;
        }

        if(len % 4 == 2) {
            ++len;
        }

        byte[] decodeBytes = new byte[len];
        len = 0;
        tmp1 = 0;
        index = 0;
        int index;
        for(index = 0; index < argString.length(); ++index) {
            tmp = argString.charAt(index);
            int tmp2 = tmp;
            tmp = tmp > 255 ? -1 : yr_Base64.ˏ_decodingTable[tmp2];
            tmp2 = tmp;
            if(tmp >= 0) {
                len += 6;
                tmp1 = tmp1 << 6 | tmp2;
                if(len >= 8) {
                    len += -8;
                    tmp = index;
                    ++index;
                    decodeBytes[tmp] = ((byte)(tmp1 >> len));
                }
            }
        }

        if(index != decodeBytes.length) {
            return null;
        }

        return decodeBytes;
    }

    public static String ॱ_encode(byte[] argBytes, int argLen) {
        char[] encodeBytes = new char[(argLen + 2) / 3 << 2];
        int v6 = 0;
        int index;
        for(index = 0; v6 < argLen; index += 4) {
            int v4 = 0;
            int v5 = 0;
            int v8 = (argBytes[v6] & 255) << 8;
            if(v6 + 1 < argLen) {
                v8 |= argBytes[v6 + 1] & 255;
                v5 = 1;
            }

            v8 <<= 8;
            if(v6 + 2 < argLen) {
                v8 |= argBytes[v6 + 2] & 255;
                v4 = 1;
            }

            int v0 = index + 3;
            char[] encodingTable = yr_Base64.ˎ_encodingTable;
            int v2 = v4 != 0 ? v8 & 63 : 64;
            encodeBytes[v0] = encodingTable[v2];
            v8 >>= 6;
            v0 = index + 2;
            encodingTable = yr_Base64.ˎ_encodingTable;
            v2 = v5 != 0 ? v8 & 63 : 64;
            encodeBytes[v0] = encodingTable[v2];
            v8 >>= 6;
            encodeBytes[index + 1] = yr_Base64.ˎ_encodingTable[v8 & 63];
            encodeBytes[index] = yr_Base64.ˎ_encodingTable[v8 >> 6 & 63];
            v6 += 3;
        }

        return new String(encodeBytes);
    }
}

package o;

public 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: