/**
* Generated by smali2java 1.0.0.558
* Copyright (C) 2013 Hensence.com
*/
package com.example.hellosmali.hellosmali;
public class Digest {
public static boolean check(String p1) {
String str = "+/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
int a1 = 6;
int a2 = 2;
if((p1 != null) && (length() != 0)) {
char[] charinput = toCharArray();
for(int i = 0; i < charinput.length; i = i + 1) {
for(String intinput = Integer.toBinaryString(charinput[i]); intinput.length() < 8; intinput) {
}
v2.append(intinput); //连接一个字符串到末尾
}
while((v2.length() % 6) != 0) {
v2.append("0");
}
String v1 = String.valueOf(v2);
char[] v4 = new char[(v1.length() / 6)];
for(int i = 0; i < v4.length; i = i + 1) {
int v6 = Integer.parseInt(v1.substring(0, a1), a2); //substring(0,a1)的二进制数
v1 = v1.substring(a1); //截取掉v1从首字母起长度为a1的字符串,将剩余字符串赋值给v1
v4[i] = str.charAt(v6); //此方法返回这个字符串的指定索引处的char值。第一个char值的索引为0.
}
if((length() % 3) == 1) {
v3.append(!?);
} else if((length() % 3) == a2) {
v3.append(!);
}
String key = String.valueOf(v3); //这将返回一个v3对象持有的指定字符串表示的值
if(key.equals("xsZDluYYreJDyrpDpucZCo!?"))//比较对象是否相等
{
return true;
}
return false;
}
return false;
}
}