List of usage examples for com.google.common.hash Hashing hmacMd5
public static HashFunction hmacMd5(byte[] key)
From source file:com.facebook.presto.operator.scalar.HmacFunctions.java
@Description("Compute HMAC with MD5") @ScalarFunction/* www . ja v a 2 s .c om*/ @SqlType(StandardTypes.VARBINARY) public static Slice hmacMd5(@SqlType(StandardTypes.VARBINARY) Slice slice, @SqlType(StandardTypes.VARBINARY) Slice key) { return wrappedBuffer(Hashing.hmacMd5(key.getBytes()).hashBytes(slice.getBytes()).asBytes()); }