Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testEmptyInputs_mixedAlgorithms (0.18 sec)

  1. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        mac.init(MD5_KEY);
        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString());
        assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).newHasher().hash().toString());
      }
    
      public void testEmptyInputs_mixedAlgorithms() throws Exception {
        String knownOutput = "8cbf764cbe2e4623d99a41354adfd390";
    
        Mac mac = Mac.getInstance("HmacMD5");
        mac.init(SHA1_KEY);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top