Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for encodeToString (0.2 sec)

  1. src/main/java/org/codelibs/fess/app/service/SearchLogService.java

                updatePagerByAgg(pager, buckets.size());
                return buckets.stream().map(e -> {
                    final Map<String, Object> map = new HashMap<>();
                    map.put(ID, Base64.getUrlEncoder().encodeToString(e.getKeyAsString().getBytes(StandardCharsets.UTF_8)));
                    map.put(KEY, e.getKeyAsString());
                    map.put(COUNT, e.getDocCount());
                    return map;
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  2. internal/crypto/metadata_test.go

    			MetaIV: base64.StdEncoding.EncodeToString(append([]byte{1}, make([]byte, 31)...)), MetaAlgorithm: SealAlgorithm,
    			MetaSealedKeyS3: base64.StdEncoding.EncodeToString(append([]byte{1}, make([]byte, 63)...)), MetaKeyID: "key-1",
    			MetaDataEncryptionKey: base64.StdEncoding.EncodeToString(make([]byte, 48)),
    		},
    		DataKey: make([]byte, 48), KeyID: "key-1", SealedKey: SealedKey{Algorithm: SealAlgorithm, Key: [64]byte{1}, IV: [32]byte{1}},
    	}, // 10
    }
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                    buf.append(encodeToString(prefix)).append("-,");
                }
                buf.append(encodeToString(textStart));
                if (StringUtil.isNotBlank(textEnd)) {
                    buf.append(',').append(encodeToString(textEnd));
                }
                if (StringUtil.isNotBlank(suffix)) {
                    buf.append(",-").append(encodeToString(suffix));
                }
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 40.1K bytes
    - Viewed (2)
  4. internal/hash/reader_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	_, err = io.Copy(io.Discard, r)
    	if err != nil {
    		t.Fatal(err)
    	}
    	md5sum := r.MD5Current()
    	if hex.EncodeToString(md5sum) != "e2fc714c4727ee9395f324cd2e7f331f" {
    		t.Errorf("Expected md5hex \"e2fc714c4727ee9395f324cd2e7f331f\", got %s", hex.EncodeToString(md5sum))
    	}
    	if r.SHA256HexString() != "88d4266fd4e6338d13b845fcf289579d209c897823b9217da3e161936f031589" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  5. internal/hash/reader.go

    			}
    		}
    
    		if r.sha256 != nil {
    			if sum := r.sha256.Sum(nil); !bytes.Equal(r.contentSHA256, sum) {
    				return n, SHA256Mismatch{
    					ExpectedSHA256:   hex.EncodeToString(r.contentSHA256),
    					CalculatedSHA256: hex.EncodeToString(sum),
    				}
    			}
    		}
    		if r.contentHasher != nil {
    			if r.contentHash.Type.Trailing() {
    				var err error
    				r.contentHash.Encoded = r.trailer.Get(r.contentHash.Type.Key())
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  6. internal/crypto/sse-kms.go

    	}
    
    	metadata[MetaAlgorithm] = sealedKey.Algorithm
    	metadata[MetaIV] = base64.StdEncoding.EncodeToString(sealedKey.IV[:])
    	metadata[MetaSealedKeyKMS] = base64.StdEncoding.EncodeToString(sealedKey.Key[:])
    	if len(ctx) > 0 {
    		b, _ := ctx.MarshalText()
    		metadata[MetaContext] = base64.StdEncoding.EncodeToString(b)
    	}
    	if len(kmsKey) > 0 && keyID != "" { // We use a KMS -> Store key ID and sealed KMS data key.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. internal/crypto/sse-s3.go

    	metadata[MetaIV] = base64.StdEncoding.EncodeToString(sealedKey.IV[:])
    	metadata[MetaSealedKeyS3] = base64.StdEncoding.EncodeToString(sealedKey.Key[:])
    	if len(kmsKey) > 0 && keyID != "" { // We use a KMS -> Store key ID and sealed KMS data key.
    		metadata[MetaKeyID] = keyID
    		metadata[MetaDataEncryptionKey] = base64.StdEncoding.EncodeToString(kmsKey)
    	}
    	return metadata
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  8. internal/hash/checksum.go

    func NewChecksumFromData(t ChecksumType, data []byte) *Checksum {
    	if !t.IsSet() {
    		return nil
    	}
    	h := t.Hasher()
    	h.Write(data)
    	raw := h.Sum(nil)
    	c := Checksum{Type: t, Encoded: base64.StdEncoding.EncodeToString(raw), Raw: raw}
    	if !c.Valid() {
    		return nil
    	}
    	return &c
    }
    
    // ReadCheckSums will read checksums from b and return them.
    func ReadCheckSums(b []byte, part int) map[string]string {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  9. cmd/sts-handlers.go

    		writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, err)
    		return
    	}
    
    	if len(sessionPolicyStr) > 0 {
    		claims[policy.SessionPolicyName] = base64.StdEncoding.EncodeToString([]byte(sessionPolicyStr))
    	}
    
    	secret, err := getTokenSigningKey()
    	if err != nil {
    		writeSTSErrorResponse(ctx, w, ErrSTSInternalError, err)
    		return
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  10. cmd/signature-v4.go

    	stringToSign := signV4Algorithm + "\n" + t.Format(iso8601Format) + "\n"
    	stringToSign += scope + "\n"
    	canonicalRequestBytes := sha256.Sum256([]byte(canonicalRequest))
    	stringToSign += hex.EncodeToString(canonicalRequestBytes[:])
    	return stringToSign
    }
    
    // getSigningKey hmac seed to calculate final signature.
    func getSigningKey(secretKey string, t time.Time, region string, stype serviceType) []byte {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
Back to top