Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 82 for EncodeToString (0.08 sec)

  1. 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)
  2. 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)
  3. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

                        final Map<String, Object> map = new HashMap<>();
                        final String name = filePath.getFileName().toString();
                        map.put("id", Base64.getUrlEncoder().encodeToString(name.getBytes(StandardCharsets.UTF_8)));
                        map.put("name", name);
                        try {
                            map.put("lastModified", new Date(Files.getLastModifiedTime(filePath).toMillis()));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. 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.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/dict/DictionaryCreator.java

                return null;
            }
    
            return newDictionaryFile(encodePath(path), path, timestamp);
        }
    
        protected String encodePath(final String path) {
            return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8));
        }
    
        protected boolean isTarget(final String path) {
            return pattern.matcher(path).find();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. internal/crypto/key_test.go

    		}
    		partKey := key.DerivePartKey(test.PartID)
    		if !bytes.Equal(partKey[:], expectedPartKey) {
    			t.Errorf("Test %d derives wrong part-key: got '%s' want: '%s'", i, hex.EncodeToString(partKey[:]), test.PartKey)
    		}
    	}
    }
    
    var sealUnsealETagTests = []string{
    	"",
    	"90682b8e8cc7609c",
    	"90682b8e8cc7609c4671e1d64c73fc30",
    	"90682b8e8cc7609c4671e1d64c73fc307fb3104f",
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. cmd/erasure-metadata-utils_test.go

    			var first [17]int
    			rng := rand.New(rand.NewSource(0))
    			var tmp [16]byte
    			rng.Read(tmp[:])
    			prefix := hex.EncodeToString(tmp[:])
    			for i := 0; i < 10000; i++ {
    				rng.Read(tmp[:])
    
    				y := hashOrder(fmt.Sprintf("%s/%x", prefix, hex.EncodeToString(tmp[:3])), x)
    				first[y[0]]++
    			}
    			t.Log("first:", first[:x])
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. 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)
  9. istioctl/pkg/util/configdump/secret.go

    	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: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Feb 25 04:09:53 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. 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)
Back to top