Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bytes encrypt not work #33

Open
lozn00 opened this issue Aug 2, 2019 · 1 comment
Open

bytes encrypt not work #33

lozn00 opened this issue Aug 2, 2019 · 1 comment

Comments

@lozn00
Copy link

lozn00 commented Aug 2, 2019

    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);
    }
}
@CalebFenton
Copy link
Owner

Thanks for reporting the issue. Can you make it orders of magnitude easier for me to reproduce by providing the sample OR the hash of the sample and the command line you're using to invoke dex-oracle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants