- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 113 for StdEncoding (0.14 sec)
-
src/image/jpeg/reader_test.go
vxrWemxlTZCvMe4BTg/nSRKHVsjGfpSe90C1VmTsG2H2x3rF1J1eVxgcHr+FVQWtyK7srFGAgOrHqDnp 7VPGNzO/O3kkCut7pnGno0idCCNyt6Crca5ZiDjpgVzXsnc6X71rDyBgcbtucn8KhjBMpOfrz7VlTdtT Sqm7JH//2Q== ` data, err := base64.StdEncoding.DecodeString(base64EncodedImage) if err != nil { t.Fatalf("base64 DecodeString: %v", err) } if _, err = Decode(bytes.NewReader(data)); err != nil { t.Fatalf("Decode: %v", err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 25 00:46:29 UTC 2024 - 24.4K bytes - Viewed (0) -
src/net/http/client_test.go
ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) { auth := r.Header.Get("Authorization") if strings.HasPrefix(auth, "Basic ") { encoded := auth[6:] decoded, err := base64.StdEncoding.DecodeString(encoded) if err != nil { t.Fatal(err) } expected := gopher + ":" s := string(decoded) if expected != s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0) -
cmd/erasure-multipart.go
if opts.Versioned && fi.VersionID == "" { fi.VersionID = mustGetUUID() } fi.DataDir = mustGetUUID() if userDefined[ReplicationSsecChecksumHeader] != "" { fi.Checksum, _ = base64.StdEncoding.DecodeString(userDefined[ReplicationSsecChecksumHeader]) delete(userDefined, ReplicationSsecChecksumHeader) } // Initialize erasure metadata. for index := range partsMetadata { partsMetadata[index] = fi
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 06:56:12 UTC 2024 - 44.8K bytes - Viewed (0) -
src/compress/gzip/gunzip_test.go
// base64-encoded version to avoid this. // See golang.org/issue/34986 f, err := os.Open("testdata/issue6550.gz.base64") if err != nil { t.Fatal(err) } gzip, err := NewReader(base64.NewDecoder(base64.StdEncoding, f)) if err != nil { t.Fatalf("NewReader(testdata/issue6550.gz): %v", err) } defer gzip.Close() done := make(chan bool, 1) go func() { _, err := io.Copy(io.Discard, gzip) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 12 15:06:07 UTC 2022 - 19.5K bytes - Viewed (0) -
cmd/auth-handler.go
if spok { // Looks like subpolicy is set and is a string, if set then its // base64 encoded, decode it. Decoding fails reject such // requests. spBytes, err := base64.StdEncoding.DecodeString(sp) if err != nil { // Base64 decoding fails, we should log to indicate // something is malforming the request sent by client. authNLogIf(GlobalContext, err, logger.ErrorKind)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 26K bytes - Viewed (0) -
pkg/proxy/iptables/proxier.go
func portProtoHash(servicePortName string, protocol string) string { hash := sha256.Sum256([]byte(servicePortName + protocol)) encoded := base32.StdEncoding.EncodeToString(hash[:]) return encoded[:16] } const ( servicePortPolicyClusterChainNamePrefix = "KUBE-SVC-" servicePortPolicyLocalChainNamePrefix = "KUBE-SVL-"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 65.1K bytes - Viewed (0) -
cmd/admin-bucket-handlers.go
bucketMap[bucket].QuotaConfigUpdatedAt = updatedAt rpt.SetStatus(bucket, fileName, nil) } } enc := func(b []byte) *string { if b == nil { return nil } v := base64.StdEncoding.EncodeToString(b) return &v } for bucket, meta := range bucketMap { err := globalBucketMetadataSys.save(ctx, *meta) if err != nil { rpt.SetStatus(bucket, "", err) continue }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 32.7K bytes - Viewed (0) -
cmd/sts-handlers.go
// policies shouldn't exceed maxSTSSessionPolicySize characters. if len(policyBuf) > maxSTSSessionPolicySize { return errSessionPolicyTooLarge } c[policy.SessionPolicyName] = base64.StdEncoding.EncodeToString(policyBuf) return nil } // stsAPIHandlers implements and provides http handlers for AWS STS API. type stsAPIHandlers struct{} // registerSTSRouter - registers AWS STS compatible APIs.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 33.9K bytes - Viewed (0) -
cmd/test-utils_test.go
hm := hmac.New(sha1.New, []byte(secretAccessKey)) hm.Write([]byte(stringToSign)) // Calculate signature. signature := base64.StdEncoding.EncodeToString(hm.Sum(nil)) query := req.URL.Query() // Handle specially for Google Cloud Storage. query.Set("AWSAccessKeyId", accessKeyID) // Fill in Expires for presigned query.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 76.9K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/fetch.go
// bytes written by the truncate operation. func isValidSum(data []byte) bool { if bytes.IndexByte(data, '\000') >= 0 { return false } if len(data) != len("h1:")+base64.StdEncoding.EncodedLen(sha256.Size) { return false } return true } var ErrGoSumDirty = errors.New("updates to go.sum needed, disabled by -mod=readonly")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0)