Skip to content

bytes encrypt not work #33

@lozn00

Description

@lozn00
    try {
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append(Environment.getExternalStorageDirectory().getAbsolutePath());
            stringBuilder.append(File.separator);
            byte[] bArr = new byte[]{(byte) 116, (byte) 24, (byte) 65, (byte) 77, (byte) 86, (byte) 78, (byte) 90};
            OooOO0OO.OooOOoo0oo(new byte[]{(byte) 2, (byte) 84, (byte) 4, (byte) 1, (byte) 11, (byte) 91}, "7a262c");
            OooOO0OO.OooOOoo0oo(bArr, "556798");
            stringBuilder.append("A-wzovo");
            stringBuilder.append(File.separator);
            byte[] bArr2 = new byte[]{(byte) 112, (byte) 85, (byte) 90, (byte) 85, (byte) 82, (byte) 99, (byte) 93, (byte) 75, (byte) 81};
            OooOO0OO.OooOOoo0oo(new byte[]{(byte) 11, (byte) 14, (byte) 13, (byte) 15, (byte) 95, (byte) 87}, "9789fc");
            OooOO0OO.OooOOoo0oo(bArr2, "295694");
            stringBuilder.append("BlockWord");
            FileUtils.fileWrite(stringBuilder.toString(), this.editBlockWord.getText().toString());
            stringBuilder = new StringBuilder();
            stringBuilder.append(Environment.getExternalStorageDirectory().getAbsolutePath());
            stringBuilder.append(File.separator);
            bArr = new byte[]{(byte) 36, (byte) 27, (byte) 69, (byte) 73, (byte) 90, (byte) 21, (byte) 10};
            OooOO0OO.OooOOoo0oo(new byte[]{(byte) 82, (byte) 2, (byte) 6, (byte) 87, (byte) 83, (byte) 1}, "744dfb");
            OooOO0OO.OooOOoo0oo(bArr, "e6235c");
            stringBuilder.append("A-wzovo");
            stringBuilder.append(File.separator);
            bArr = new byte[]{(byte) 35, (byte) 67, (byte) 67, (byte) 13, TarConstants.LF_FIFO};
            OooOO0OO.OooOOoo0oo(new byte[]{(byte) 7, (byte) 1, (byte) 4, (byte) 7, (byte) 0, (byte) 0}, "e73ed3");
            OooOO0OO.OooOOoo0oo(bArr, "b67bd3");
            stringBuilder.append("AutoR");
            FileUtils.fileWrite(stringBuilder.toString(), this.editAutoR.getText().toString());
            byte[] bArr3 = new byte[]{(byte) -43, (byte) -34, (byte) -4, (byte) -36, (byte) -50, (byte) -81, (byte) -41, (byte) -23, (byte) -15, (byte) -36, (byte) -23, (byte) -88};
            OooOO0OO.OooOOoo0oo(new byte[]{(byte) 4, (byte) 83, (byte) 81, (byte) 0, (byte) 0, (byte) 81}, "5209cf");
            Toast.makeText(this, OooOO0OO.OooOOoo0oo(bArr3, "1aa9c7"), 0).show();
        } catch (Exception e) {
            e.printStackTrace();
            Toast.makeText(this, OooOO0OO.OooOOoo0oo(new byte[]{(byte) 0, (byte) 14, (byte) 83, (byte) 86, (byte) 6, (byte) 3}, OooOO0OO.OooOOoo0oo(new byte[]{(byte) 0, (byte) 14, (byte) 83, (byte) 86, (byte) 6, (byte) 3}, "27bc1f")), 0).show();
        }


public class OooOO0OO {
    public static byte[] encode(byte[] bytes, String key) {
        int len = bytes.length;
        int keyLen = key.length();
        for (int i = 0; i < len; i++) {
            bytes[i] = (byte) (bytes[i] ^ key.charAt(i % keyLen));
        }
        return bytes;
    }

    public static String OooOOoo0oo(byte[] bytes, String key) {
        int len = bytes.length;
        int keyLen = key.length();
        for (int i = 0; i < len; i++) {
            bytes[i] = (byte) (bytes[i] ^ key.charAt(i % keyLen));
        }
        return new String(bytes);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions