Пример #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;
 }