MCPcopy Index your code
hub / github.com/ccxt/ccxt / binaryToHex

Method binaryToHex

java/lib/src/main/java/io/github/ccxt/base/Crypto.java:75–79  ·  view source on GitHub ↗
(byte[] data)

Source from the content-addressed store, hash-verified

73 private static byte[] toUtf8(Object o) { return toString(o).getBytes(StandardCharsets.UTF_8); }
74
75 public static String binaryToHex(byte[] data) {
76 StringBuilder sb = new StringBuilder(data.length * 2);
77 for (byte b : data) sb.append(String.format("%02x", b));
78 return sb.toString();
79 }
80
81 public static String BinaryToBase64(byte[] buff) {
82 return Base64.getEncoder().encodeToString(buff);

Callers 5

binaryToBase58Method · 0.95
HmacMethod · 0.95
HashMethod · 0.95
ByteArrayToStringMethod · 0.95
ToHexMethod · 0.95

Calls 3

appendMethod · 0.45
formatMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected