Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for HashString (0.2 sec)

  1. internal/logger/logger.go

    			Source:    trace,
    			Variables: tags,
    		}
    	} else {
    		entry.Message = message
    	}
    
    	if anonFlag {
    		entry.API.Args.Bucket = HashString(entry.API.Args.Bucket)
    		entry.API.Args.Object = HashString(entry.API.Args.Object)
    		entry.RemoteHost = HashString(entry.RemoteHost)
    		if entry.Trace != nil {
    			entry.Trace.Variables = make(map[string]interface{})
    		}
    	}
    
    	return entry
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java

            return DEFAULT.hashBytes(bytes);
        }
    
        /**
         * Hash the given string with the default hash function.
         */
        public static HashCode hashString(CharSequence string) {
            return DEFAULT.hashString(string);
        }
    
        /**
         * Hash the contents of the given {@link java.io.InputStream} with the default hash function.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:30 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    func (h Hasher) Hash(t types.Type) uint32 {
    	hash, ok := h.memo[t]
    	if !ok {
    		hash = h.hashFor(t)
    		h.memo[t] = hash
    	}
    	return hash
    }
    
    // hashString computes the Fowler–Noll–Vo hash of s.
    func hashString(s string) uint32 {
    	var h uint32
    	for i := 0; i < len(s); i++ {
    		h ^= uint32(s[i])
    		h *= 16777619
    	}
    	return h
    }
    
    // hashFor computes the hash of t.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/HashFunction.java

       * running the same hash function on the equivalent input. For cross-language compatibility, use
       * {@link #hashString}, usually with a charset of UTF-8. For other use cases, use {@code
       * hashUnencodedChars}.
       *
       * @since 15.0 (since 11.0 as hashString(CharSequence)).
       */
      HashCode hashUnencodedChars(CharSequence input);
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 25 18:22:59 UTC 2021
    - 10.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/HashFunction.java

       * running the same hash function on the equivalent input. For cross-language compatibility, use
       * {@link #hashString}, usually with a charset of UTF-8. For other use cases, use {@code
       * hashUnencodedChars}.
       *
       * @since 15.0 (since 11.0 as hashString(CharSequence)).
       */
      HashCode hashUnencodedChars(CharSequence input);
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 25 18:22:59 UTC 2021
    - 10.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

      public void testHashCode_equalsAndSerializable() throws Exception {
        sanityTester().testEqualsAndSerializable();
      }
    
      public void testRoundTripHashCodeUsingBaseEncoding() {
        HashCode hash1 = Hashing.sha1().hashString("foo", Charsets.US_ASCII);
        HashCode hash2 = HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString()));
        assertEquals(hash1, hash2);
      }
    
      public void testObjectHashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

              public String getFormat() {
                return "RAW";
              }
            };
        assertEquals(
            "ad262969c53bc16032f160081c4a07a0",
            Hashing.hmacMd5(customKey)
                .hashString("The quick brown fox jumps over the lazy dog", UTF_8)
                .toString());
      }
    
      public void testBadKey_emptyKey() throws Exception {
        SecretKey badKey =
            new SecretKey() {
              @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

              public String getFormat() {
                return "RAW";
              }
            };
        assertEquals(
            "ad262969c53bc16032f160081c4a07a0",
            Hashing.hmacMd5(customKey)
                .hashString("The quick brown fox jumps over the lazy dog", UTF_8)
                .toString());
      }
    
      public void testBadKey_emptyKey() throws Exception {
        SecretKey badKey =
            new SecretKey() {
              @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  9. cmd/bucket-lifecycle.go

    	return xxh3.HashString(f.TransitionedObject.Tier + f.TransitionedObject.Name)
    }
    
    func (n newerNoncurrentTask) OpHash() uint64 {
    	return xxh3.HashString(n.bucket + n.versions[0].ObjectV.ObjectName)
    }
    
    func (j jentry) OpHash() uint64 {
    	return xxh3.HashString(j.TierName + j.ObjName)
    }
    
    func (e expiryTask) OpHash() uint64 {
    	return xxh3.HashString(e.objInfo.Bucket + e.objInfo.Name)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/initialization/DefaultSettings.java

                // using "-" to separate the parts of the root project name to allow easier usage in the CLI, just in case.
                return "generated-" + rootIndicator  + (rootIndicator.isEmpty() ? "" : "-") +
                    sha512().hashString(now().toString()).toString().substring(0, 6);
            }
            return settingsDir.getName();
        }
    
        @Override
        public String toString() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 18:31:24 UTC 2023
    - 14.3K bytes
    - Viewed (0)
Back to top