示例#1
0
 public static void main(String[] args) {
   String b = "U00QUfV1CRfIIU0NkcUCnA==258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
   System.out.println(b + " SHA1 :" + EncoderHandler.encodeBySHA1(b));
 }
示例#2
0
 public static String encodeBySHA1(String str) {
   String result = EncoderHandler.encode("SHA1", str);
   return result;
 }