Skip to content

Instantly share code, notes, and snippets.

@liamengland1
Created July 3, 2020 23:58
Show Gist options
  • Save liamengland1/8b8658a3fd478e10dff773f89d288cdd to your computer and use it in GitHub Desktop.
Save liamengland1/8b8658a3fd478e10dff773f89d288cdd to your computer and use it in GitHub Desktop.
com.ss.a.b.a.a from tiktok apk
package com.ss.a.b;
public final class a {
public static String a(byte[] arg6) {
if(arg6 == null) {
return null;
}
char[] v1 = "0123456789abcdef".toCharArray();
char[] v2 = new char[arg6.length * 2];
int v0;
for(v0 = 0; v0 < arg6.length; ++v0) {
int v3 = arg6[v0] & 0xFF;
int v4 = v0 * 2;
v2[v4] = v1[v3 >>> 4];
v2[v4 + 1] = v1[v3 & 15];
}
return new String(v2);
}
public static byte[] a(String arg7) {
int v1 = arg7.length();
byte[] v2 = new byte[v1 / 2];
int v0;
for(v0 = 0; v0 < v1; v0 += 2) {
v2[v0 / 2] = (byte)((Character.digit(arg7.charAt(v0), 16) << 4) + Character.digit(arg7.charAt(v0 + 1), 16));
}
return v2;
}
public static byte[] a(byte[][] arg8) {
int v0 = 0;
int v2;
for(v2 = 0; v2 < 2; ++v2) {
v0 += arg8[v2].length;
}
byte[] v3 = new byte[v0];
int v0_1 = 0;
int v2_1;
for(v2_1 = 0; v2_1 < 2; ++v2_1) {
byte[] v4 = arg8[v2_1];
System.arraycopy(((Object)v4), 0, ((Object)v3), v0_1, v4.length);
v0_1 += v4.length;
}
return v3;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment