Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 77 for StdEncoding (0.15 sec)

  1. internal/hash/reader_test.go

    		t.Errorf("Expected sha256hex \"88d4266fd4e6338d13b845fcf289579d209c897823b9217da3e161936f031589\", got %s", r.SHA256HexString())
    	}
    	if base64.StdEncoding.EncodeToString(md5sum) != "4vxxTEcn7pOV8yTNLn8zHw==" {
    		t.Errorf("Expected md5base64 \"4vxxTEcn7pOV8yTNLn8zHw==\", got \"%s\"", base64.StdEncoding.EncodeToString(md5sum))
    	}
    	if r.Size() != 4 {
    		t.Errorf("Expected size 4, got %d", r.Size())
    	}
    	if r.ActualSize() != 4 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  2. internal/kms/secret-key_test.go

    	KMS, err := ParseSecretKey("my-key:eEm+JI9/q4JhH8QwKvf3LKo4DEBl6QbfvAl1CAbMIv8=")
    	if err != nil {
    		t.Fatalf("Failed to initialize KMS: %v", err)
    	}
    
    	for i, test := range decryptKeyTests {
    		dataKey, err := base64.StdEncoding.DecodeString(test.Plaintext)
    		if err != nil {
    			t.Fatalf("Test %d: failed to decode plaintext key: %v", i, err)
    		}
    		plaintext, err := KMS.Decrypt(context.TODO(), &DecryptRequest{
    			Name:           test.KeyID,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/encoding/base64/base64.go

    // (CR and LF) are still ignored.
    func (enc Encoding) Strict() *Encoding {
    	enc.strict = true
    	return &enc
    }
    
    // StdEncoding is the standard base64 encoding, as defined in RFC 4648.
    var StdEncoding = NewEncoding("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
    
    // URLEncoding is the alternate base64 encoding defined in RFC 4648.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  4. cmd/bucket-versioning-handler.go

    		return
    	}
    
    	// Call site replication hook.
    	//
    	// We encode the xml bytes as base64 to ensure there are no encoding
    	// errors.
    	cfgStr := base64.StdEncoding.EncodeToString(configData)
    	replLogIf(ctx, globalSiteReplicationSys.BucketMetaHook(ctx, madmin.SRBucketMeta{
    		Type:       madmin.SRBucketMetaTypeVersionConfig,
    		Bucket:     bucket,
    		Versioning: &cfgStr,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. tests/integration/telemetry/api/setup_test.go

    	promInst, err = prometheus.New(ctx, prometheus.Config{})
    	if err != nil {
    		return
    	}
    
    	args := map[string]any{
    		"DockerConfigJson": base64.StdEncoding.EncodeToString(
    			[]byte(createDockerCredential(registryUser, registryPasswd, registry.Address()))),
    	}
    	if err := ctx.ConfigIstio().EvalFile(apps.Namespace.Name(), args, "testdata/registry-secret.yaml").
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. src/net/http/request_test.go

    	{"Basic " + base64.StdEncoding.EncodeToString([]byte(":")), "", "", true},
    	{"Basic" + base64.StdEncoding.EncodeToString([]byte("Aladdin:open sesame")), "", "", false},
    	{base64.StdEncoding.EncodeToString([]byte("Aladdin:open sesame")), "", "", false},
    	{"Basic ", "", "", false},
    	{"Basic Aladdin:open sesame", "", "", false},
    	{`Digest username="Aladdin"`, "", "", false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn_test.go

    		if err != nil {
    			t.Error(err)
    			return
    		}
    		if !reflect.DeepEqual(data, []byte("client")) {
    			t.Errorf("unexpected server read: %s", string(data))
    		}
    	}()
    
    	clientData := base64.StdEncoding.EncodeToString([]byte("client"))
    	if n, err := client.Write(append([]byte{'0'}, clientData...)); err != nil || n != len(clientData)+1 {
    		t.Fatalf("%d: %v", n, err)
    	}
    
    	wg.Add(1)
    	go func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  8. internal/hash/reader.go

    				r.contentHash.Raw, err = base64.StdEncoding.DecodeString(r.contentHash.Encoded)
    				if err != nil || len(r.contentHash.Raw) == 0 {
    					return 0, ChecksumMismatch{Got: r.contentHash.Encoded}
    				}
    			}
    			if sum := r.contentHasher.Sum(nil); !bytes.Equal(r.contentHash.Raw, sum) {
    				err := ChecksumMismatch{
    					Want: r.contentHash.Encoded,
    					Got:  base64.StdEncoding.EncodeToString(sum),
    				}
    				return n, err
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/x86/seh.go

    	// The list of unwind infos in a PE binary have very low cardinality
    	// as each info only contains frame pointer operations,
    	// which are very similar across functions.
    	// Dedup them when possible.
    	hash := base64.StdEncoding.EncodeToString(buf.data)
    	symname := fmt.Sprintf("%d.%s", len(buf.data), hash)
    	return ctxt.LookupInit("go:sehuw."+symname, func(s *obj.LSym) {
    		s.WriteBytes(ctxt, 0, buf.data)
    		s.Type = objabi.SSEHUNWINDINFO
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go

    		frame[0] = num
    		copy(frame[1:], data)
    		if err := websocket.Message.Send(conn.ws, frame); err != nil {
    			return 0, err
    		}
    	case base64Codec:
    		frame := string('0'+num) + base64.StdEncoding.EncodeToString(data)
    		if err := websocket.Message.Send(conn.ws, frame); err != nil {
    			return 0, err
    		}
    	}
    	return len(data), nil
    }
    
    // websocketChannel represents a channel in a connection
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top