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

Method digestBytes

java/lib/src/main/java/io/github/ccxt/base/Crypto.java:182–189  ·  view source on GitHub ↗
(String algo, byte[] data)

Source from the content-addressed store, hash-verified

180 }
181
182 private static byte[] digestBytes(String algo, byte[] data) {
183 try {
184 MessageDigest md = MessageDigest.getInstance(algo);
185 return md.digest(data);
186 } catch (NoSuchAlgorithmException e) {
187 throw new RuntimeException(e);
188 }
189 }
190
191 private static byte[] shaDigest(String algo, String data) {
192 try {

Callers 1

HashMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected