- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for EncodeToString (0.11 sec)
-
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 }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 18.7K bytes - Viewed (0) -
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;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 28.4K bytes - Viewed (0) -
internal/crypto/header_test.go
}, ShouldFail: false}, // 3 {Header: http.Header{ "X-Amz-Server-Side-Encryption": []string{"aws:kms"}, "X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id": []string{"s3-007-293847485-724784"}, "X-Amz-Server-Side-Encryption-Context": []string{base64.StdEncoding.EncodeToString([]byte(`{"bucket": "some-bucket"}`))},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 13 14:52:15 UTC 2022 - 21.4K bytes - Viewed (0) -
cmd/local-locker_test.go
var tmp [16]byte rng.Read(tmp[:]) res := []string{hex.EncodeToString(tmp[:])} for i := 0; i < readers; i++ { rng.Read(tmp[:]) ok, err := l.RLock(context.Background(), dsync.LockArgs{ UID: uuid.NewString(), Resources: res, Source: hex.EncodeToString(tmp[:8]), Owner: hex.EncodeToString(tmp[8:]), Quorum: &quorum, })
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 24 10:24:01 UTC 2024 - 11.9K bytes - Viewed (0) -
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())
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 19 12:59:07 UTC 2024 - 10.9K bytes - Viewed (0) -
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" {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 10.3K bytes - Viewed (0) -
internal/hash/checksum.go
return ChecksumMismatch{ Want: fmt.Sprintf("%s-%d", c.Encoded, c.WantParts), Got: fmt.Sprintf("%s-%d", base64.StdEncoding.EncodeToString(sum), parts), } } if !bytes.Equal(sum, c.Raw) { return ChecksumMismatch{ Want: c.Encoded, Got: base64.StdEncoding.EncodeToString(sum), } } return nil } // AsMap returns the func (c *Checksum) AsMap() map[string]string {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 19 12:59:07 UTC 2024 - 12.7K bytes - Viewed (0) -
internal/config/identity/openid/openid.go
// restart. var resourceID string { h := sha1.New() h.Write([]byte(p.ClientID)) bs := h.Sum(nil) resourceID = base64.RawURLEncoding.EncodeToString(bs) } p.roleArn, err = arn.NewIAMRoleARN(resourceID, serverRegion) if err != nil { return c, config.Errorf("unable to generate ARN from the OpenID config: %v", err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 10 20:16:44 UTC 2024 - 16.6K bytes - Viewed (0) -
cmd/encryption-v1_test.go
crypto.MetaSealedKeyS3: base64.StdEncoding.EncodeToString(make([]byte, 64)), crypto.MetaKeyID: "kms-key", crypto.MetaDataEncryptionKey: "m-key", }, encryptionType: encrypt.S3, err: nil, }, // 4 { headers: http.Header{}, copySource: true, metadata: map[string]string{ crypto.MetaSealedKeyS3: base64.StdEncoding.EncodeToString(make([]byte, 64)),
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Sep 24 04:17:08 UTC 2022 - 19.9K bytes - Viewed (0) -
internal/etag/etag.go
// // The returned string is a hex representation of the // binary ETag with an optional '-<part-number>' suffix. func (e ETag) String() string { if e.IsMultipart() { return hex.EncodeToString(e[:16]) + string(e[16:]) } return hex.EncodeToString(e) } // IsEncrypted reports whether the ETag is encrypted. func (e ETag) IsEncrypted() bool { // An encrypted ETag must be at least 32 bytes long.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Mar 10 21:09:36 UTC 2024 - 13.3K bytes - Viewed (0)