Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 116 for md5 (0.01 seconds)

  1. src/test/java/jcifs/util/CryptoTest.java

        @Test
        @DisplayName("Should calculate MD5 hash correctly")
        void testMD5Hash() {
            // Given
            String input = "Hello World";
            byte[] data = input.getBytes();
    
            // When
            MessageDigest md5 = Crypto.getMD5();
            byte[] hash = md5.digest(data);
    
            // Then
            assertNotNull(hash);
            assertEquals(16, hash.length); // MD5 produces 128-bit hash
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  2. internal/hash/reader.go

    			CalculatedSHA256: "",
    		}
    	}
    
    	// Merge the size, MD5 and SHA256 values if src is a Reader.
    	// The size may be set to -1 by callers if unknown.
    	if r, ok := src.(*Reader); ok {
    		if r.bytesRead > 0 {
    			return nil, errors.New("hash: already read from hash reader")
    		}
    		if len(r.checksum) != 0 && len(MD5) != 0 && !etag.Equal(r.checksum, MD5) {
    			return nil, BadDigest{
    				ExpectedMD5:   r.checksum.String(),
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jun 25 15:08:54 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  3. internal/crypto/header_test.go

    	{Header: http.Header{"X-Amz-Server-Side-Encryption-Customer-Key-Md5": []string{"7PpPLAK26ONlVUGOWlusfg=="}}, Expected: true},                 // 3
    	{
    		Header: http.Header{
    			"X-Amz-Server-Side-Encryption-Customer-Algorithm": []string{""},
    			"X-Amz-Server-Side-Encryption-Customer-Key":       []string{""},
    			"X-Amz-Server-Side-Encryption-Customer-Key-Md5":   []string{""},
    		},
    		Expected: true,
    	}, // 4
    	{
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jul 13 14:52:15 GMT 2022
    - 21.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/util/HMACT64Test.java

                opad[i] = 0x5c;
            }
    
            // Calculate inner hash
            md5.reset();
            md5.update(ipad);
            md5.update(data);
            byte[] innerHash = md5.digest();
    
            // Calculate outer hash
            md5.reset();
            md5.update(opad);
            return md5.digest(innerHash);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/resources/fips_java.security

    crypto.policy=unlimited
    jdk.xml.dsig.secureValidationPolicy=\
        disallowAlg http://www.w3.org/TR/1999/REC-xslt-19991116,\
        disallowAlg http://www.w3.org/2001/04/xmldsig-more#rsa-md5,\
        disallowAlg http://www.w3.org/2001/04/xmldsig-more#hmac-md5,\
        disallowAlg http://www.w3.org/2001/04/xmldsig-more#md5,\
        maxTransforms 5,\
        maxReferences 30,\
        disallowReferenceUriSchemes file http https,\
        minKeySize RSA 1024,\
        minKeySize DSA 1024,\
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.1K bytes
    - Click Count (0)
  6. src/main/java/jcifs/util/HMACT64.java

            final byte[] digest = this.md5.digest();
            this.md5.update(this.opad);
            return this.md5.digest(digest);
        }
    
        @Override
        protected int engineDigest(final byte[] buf, final int offset, final int len) {
            final byte[] digest = this.md5.digest();
            this.md5.update(this.opad);
            this.md5.update(digest);
            try {
                return this.md5.digest(buf, offset, len);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  7. internal/hash/reader_test.go

    			err:        ioutil.ErrOverread,
    		},
    		{
    			desc:       "Correct MD5, nested",
    			src:        mustReader(t, bytes.NewReader([]byte("abcd")), 4, "", "", 4),
    			size:       4,
    			actualSize: 4,
    			md5hex:     "e2fc714c4727ee9395f324cd2e7f331f",
    		},
    		{
    			desc:       "Correct MD5, truncated",
    			src:        bytes.NewReader([]byte("abcd-morethan-4-bytes")),
    			size:       4,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  8. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

          }
        };
        ;
    
        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;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessSecurityResourceProviderTest.java

        }
    
        @Test
        public void test_withMd5Cryptographer() {
            // Test with MD5
            OneWayCryptographer md5 = new OneWayCryptographer("MD5", OneWayCryptographer.ENCODING_UTF8);
            FessSecurityResourceProvider provider = new FessSecurityResourceProvider(invertibleCryptographer, md5);
    
            assertNotNull(provider);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      @SuppressWarnings("deprecation") // We still need to test our deprecated APIs.
      private static final ImmutableMap<String, HashFunction> ALGORITHMS =
          new ImmutableMap.Builder<String, HashFunction>()
              .put("MD5", md5())
              .put("SHA", sha1()) // Not the official name, but still works
              .put("SHA1", sha1()) // Not the official name, but still works
              .put("sHa-1", sha1()) // Not the official name, but still works
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 4.9K bytes
    - Click Count (0)
Back to Top