62,621
社区成员
发帖
与我相关
我的任务
分享private static String getDigit(String shiftNum, String key)
throws NoSuchAlgorithmException {
char cs[] = {'0','1','2','3','4','5','6','7','8','9'};
byte temp[] = encrypt(shiftNum, key).getBytes();
char c[] = new char[4];
for(int i=0; i<4; i++) {
c[i] = cs[temp[i]%10];
}
return new String(c);
}
表示围观!!!