MCPcopy Create free account
hub / github.com/Ramos-dev/OSSTunnel / hamcsha1

Method hamcsha1

client/src/main/java/Lucian.java:291–300  ·  view source on GitHub ↗
(byte[] data, byte[] key)

Source from the content-addressed store, hash-verified

289
290
291 public static byte[] hamcsha1(byte[] data, byte[] key) {
292 try {
293 SecretKeySpec signingKey = new SecretKeySpec(key, "HmacSHA1");
294 Mac mac = Mac.getInstance("HmacSHA1");
295 mac.init(signingKey);
296 return mac.doFinal(data);
297 } catch (Exception localException) {
298 }
299 return null;
300 }
301
302
303 private static final char[] baseChars = {

Callers 1

sendMethod · 0.95

Calls 1

initMethod · 0.80

Tested by

no test coverage detected