MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / sha1

Method sha1

src/main/java/core/packetproxy/common/CryptUtils.java:35–37  ·  view source on GitHub ↗
(String target)

Source from the content-addressed store, hash-verified

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);

Callers 2

onClientChunkReceivedMethod · 0.95
onServerChunkReceivedMethod · 0.95

Calls 2

getBytesMethod · 0.65
getInstanceMethod · 0.45

Tested by

no test coverage detected