- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 105 for StdEncoding (0.18 sec)
-
pkg/credentialprovider/config.go
func decodeDockerConfigFieldAuth(field string) (username, password string, err error) { var decoded []byte // StdEncoding can only decode padded string // RawStdEncoding can only decode unpadded string if strings.HasSuffix(strings.TrimSpace(field), "=") { // decode padded data decoded, err = base64.StdEncoding.DecodeString(field) } else { // decode unpadded data decoded, err = base64.RawStdEncoding.DecodeString(field)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 19 15:11:57 UTC 2023 - 9.3K bytes - Viewed (0) -
tests/integration/telemetry/api/registry_setup_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 04 22:47:52 UTC 2023 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/discovery/storageversionhash.go
// the chance of colliding hash P(N,X) approximates to 1-e^(-(N^2)/2^(8X+1)). // P(10,000, 8) ~= 2.7*10^(-12), which is low enough. // See https://en.wikipedia.org/wiki/Birthday_problem#Approximations. return base64.StdEncoding.EncodeToString(bytes[:8])
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 14 12:08:11 UTC 2023 - 1.3K bytes - Viewed (0) -
src/encoding/pem/pem.go
if s, _ := getLine(restOfEndLine); len(s) != 0 { continue } base64Data := removeSpacesAndTabs(rest[:endIndex]) p.Bytes = make([]byte, base64.StdEncoding.DecodedLen(len(base64Data))) n, err := base64.StdEncoding.Decode(p.Bytes, base64Data) if err != nil { continue } p.Bytes = p.Bytes[:n] // the -1 is because we might have only matched pemEnd without the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.6K bytes - Viewed (0) -
internal/crypto/header_test.go
"X-Amz-Server-Side-Encryption-Context": []string{base64.StdEncoding.EncodeToString([]byte("{}"))}, }, 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 Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jul 13 14:52:15 UTC 2022 - 21.4K bytes - Viewed (0) -
internal/kms/dek_test.go
t.Fatalf("Test %d: ciphertext mismatch: got %x - want %x", i, key.Ciphertext, test.Key.Ciphertext) } } } func mustDecodeB64(s string) []byte { b, err := base64.StdEncoding.DecodeString(s) if err != nil { panic(err) } return b
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/envelope.go
if err != nil { return nil, err } // Use base64 of encKey as the key into the cache because hashicorp/golang-lru // cannot hash []uint8. if t.cacheEnabled { t.transformers.Add(base64.StdEncoding.EncodeToString(encKey), transformer) metrics.RecordDekCacheFillPercent(float64(t.transformers.Len()) / float64(t.cacheSize)) } return transformer, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 14:23:50 UTC 2023 - 6.2K bytes - Viewed (0) -
cmd/signature-v2.go
// as Base64 encoding of a value is not unique: // For example "aGVsbG8=" and "aGVsbG8=\r" will result in the same byte slice. signature1, err := base64.StdEncoding.DecodeString(sig1) if err != nil { return false } signature2, err := base64.StdEncoding.DecodeString(sig2) if err != nil { return false } return subtle.ConstantTimeCompare(signature1, signature2) == 1 } // Return canonical headers.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 12.2K bytes - Viewed (0) -
istioctl/pkg/util/configdump/secret.go
rCASecret := secret.GetValidationContext() if rCASecret != nil { trustCA := rCASecret.GetTrustedCa() if trustCA != nil { inlineBytes := trustCA.GetInlineBytes() if inlineBytes != nil { returnStr = base64.StdEncoding.EncodeToString(inlineBytes) returnErr = nil } else { returnStr = "" returnErr = fmt.Errorf("can not retrieve inlineBytes from trustCA section") } } else { returnStr = ""
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Feb 25 04:09:53 UTC 2023 - 2.2K bytes - Viewed (0) -
src/net/http/pprof/pprof_test.go
t.Fatalf("error running profile collection: %v\noutput: %s", err, out) } // Log the binary output for debugging failures. b64 := make([]byte, base64.StdEncoding.EncodedLen(len(out))) base64.StdEncoding.Encode(b64, out) t.Logf("Output in base64.StdEncoding: %s", b64) p, err := profile.Parse(bytes.NewReader(out)) if err != nil { t.Fatalf("Parse got err %v want nil", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 19:52:28 UTC 2023 - 9.7K bytes - Viewed (0)