first commit
This commit is contained in:
31
p000/LicenseKeyUtil.java
Normal file
31
p000/LicenseKeyUtil.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package p000;
|
||||
|
||||
/* renamed from: ak */
|
||||
/* loaded from: microcounterstrike.jar:ak.class */
|
||||
public final class LicenseKeyUtil {
|
||||
/* renamed from: a */
|
||||
public static final String getString100(String str) {
|
||||
if (str == null) {
|
||||
return "0";
|
||||
}
|
||||
int length = str.toLowerCase().getBytes().length;
|
||||
long jM101a = 0;
|
||||
for (int i = 0; i < length; i++) {
|
||||
jM101a += r0[i] * getLong101((length - i) - 1);
|
||||
}
|
||||
if (jM101a < 0) {
|
||||
jM101a = -jM101a;
|
||||
}
|
||||
String string = Long.toString(jM101a);
|
||||
return string.length() < 8 ? new StringBuffer(String.valueOf(string)).append("22052007".substring(0, 8 - string.length())).toString() : string.substring(0, 8);
|
||||
}
|
||||
|
||||
/* renamed from: a */
|
||||
private static final long getLong101(int i) {
|
||||
long j = 1;
|
||||
for (int i2 = 0; i2 < i; i2++) {
|
||||
j *= 10;
|
||||
}
|
||||
return j;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user