Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testHashTwice (0.07 sec)

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

            sha1.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
        assertThrows(IllegalStateException.class, () -> sha1.putInt(42));
      }
    
      public void testHashTwice() {
        Hasher sha1 = Hashing.sha1().newHasher();
    
        assertEquals(
            "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12",
            sha1.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
    Registered: 2025-05-30 12:43
    - Last Modified: 2024-12-19 18:03
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

            hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
        assertThrows(IllegalStateException.class, () -> hasher.putInt(42));
      }
    
      public void testHashTwice() {
        Hasher hasher = Hashing.hmacMd5(MD5_KEY).newHasher();
    
        assertEquals(
            "9753980fe94daa8ecaa82216519393a9",
    Registered: 2025-05-30 12:43
    - Last Modified: 2024-12-27 16:19
    - 13.8K bytes
    - Viewed (0)
Back to top