Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for md5 (0.11 sec)

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

        mac.init(MD5_KEY);
        mac.update(input.getBytes(UTF_8));
        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString());
        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString());
        assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashString(input, UTF_8).toString());
        assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashBytes(input.getBytes(UTF_8)).toString());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

          }
        };
        ;
    
        public abstract byte[] hash(Algorithm algorithm, byte[] input);
      }
    
      private enum Algorithm {
        MD5("MD5", Hashing.md5()),
        SHA_1("SHA-1", Hashing.sha1()),
        SHA_256("SHA-256", Hashing.sha256()),
        SHA_384("SHA-384", Hashing.sha384()),
        SHA_512("SHA-512", Hashing.sha512());
    
        private final String algorithmName;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        mac.init(MD5_KEY);
        mac.update(input.getBytes(UTF_8));
        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString());
        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString());
        assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashString(input, UTF_8).toString());
        assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashBytes(input.getBytes(UTF_8)).toString());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testHash_hashesCorrectly() throws Exception {
        HashCode expectedHash = Hashing.md5().hashBytes(testBytes);
        HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
    
        byte[] buf = new byte[4];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(4, numOfByteRead);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      //  - The algorithm name is not case-sensitive.
      private static final ImmutableMap<String, HashFunction> ALGORITHMS =
          new ImmutableMap.Builder<String, HashFunction>()
              .put("MD5", Hashing.md5())
              .put("SHA", Hashing.sha1()) // Not the official name, but still works
              .put("SHA1", Hashing.sha1()) // Not the official name, but still works
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

      }
    
      public void testHash_hashesCorrectly() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashCode expectedHash = Hashing.md5().hashBytes(buf);
        HashingOutputStream out = new HashingOutputStream(Hashing.md5(), buffer);
    
        out.write(buf);
    
        assertEquals(expectedHash, out.hash());
      }
    
      public void testChecksForNull() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 3.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hashing.java

       *     </ul>
       */
      @Deprecated
      public static HashFunction md5() {
        return Md5Holder.MD5;
      }
    
      private static class Md5Holder {
        static final HashFunction MD5 = new MessageDigestHashFunction("MD5", "Hashing.md5()");
      }
    
      /**
       * Returns a hash function implementing the SHA-1 algorithm (160 hash bits).
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/HashingTest.java

            Hashing.md5().bits() + Hashing.md5().bits(),
            Hashing.concatenating(Hashing.md5(), Hashing.md5()).bits());
        assertEquals(
            Hashing.md5().bits() + Hashing.murmur3_32().bits(),
            Hashing.concatenating(Hashing.md5(), Hashing.murmur3_32()).bits());
        assertEquals(
            Hashing.md5().bits() + Hashing.murmur3_32().bits() + Hashing.murmur3_128().bits(),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/HashFunctionEnum.java

      CRC32(Hashing.crc32()),
      GOOD_FAST_HASH_32(Hashing.goodFastHash(32)),
      GOOD_FAST_HASH_64(Hashing.goodFastHash(64)),
      GOOD_FAST_HASH_128(Hashing.goodFastHash(128)),
      GOOD_FAST_HASH_256(Hashing.goodFastHash(256)),
      MD5(Hashing.md5()),
      MURMUR3_128(Hashing.murmur3_128()),
      MURMUR3_32(Hashing.murmur3_32()),
      MURMUR3_32_FIXED(Hashing.murmur3_32_fixed()),
      SHA1(Hashing.sha1()),
      SHA256(Hashing.sha256()),
      SHA384(Hashing.sha384()),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

                  }
                });
    
        assertExpectedBytes(readBytes);
      }
    
      public void testHash() throws IOException {
        HashCode expectedHash = Hashing.md5().hashBytes(expected);
        assertEquals(expectedHash, source.hash(Hashing.md5()));
      }
    
      public void testSlice_illegalArguments() {
        assertThrows(
            "expected IllegalArgumentException for call to slice with offset -1: " + source,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
Back to top