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

Method toHex

src/main/java/core/packetproxy/common/CryptUtils.java:311–323  ·  view source on GitHub ↗
(byte bytes[])

Source from the content-addressed store, hash-verified

309 }
310
311 public static String toHex(byte bytes[]) {
312 StringBuffer strbuf = new StringBuffer(bytes.length * 2);
313 for (int index = 0; index < bytes.length; index++) {
314
315 int bt = bytes[index] & 0xff;
316 if (bt < 0x10) {
317
318 strbuf.append("0");
319 }
320 strbuf.append(Integer.toHexString(bt));
321 }
322 return strbuf.toString();
323 }
324
325}

Callers 1

encryptCBCMethod · 0.95

Calls 3

toHexStringMethod · 0.80
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected