(String target)
| 33 | } |
| 34 | |
| 35 | public static String sha1(String target) throws Exception { |
| 36 | return Hex.encodeHexString(sha1(target.getBytes())); |
| 37 | } |
| 38 | |
| 39 | public static byte[] sha1(byte[] target) throws Exception { |
| 40 | return MessageDigest.getInstance("SHA-1").digest(target); |
no test coverage detected