Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 9753980fe94daa8ecaa82216519393a9 (0.61 sec)

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

        assertEquals(knownOutput, Hashing.hmacMd5(SHA1_KEY).newHasher().hash().toString());
      }
    
      public void testKnownInputs() throws Exception {
        String knownOutput = "9753980fe94daa8ecaa82216519393a9";
        String input = "The quick brown fox jumps over the lazy dog";
    
        Mac mac = Mac.getInstance("HmacMD5");
        mac.init(MD5_KEY);
        mac.update(input.getBytes(UTF_8));
    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