Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 75 for EncodeToString (0.18 sec)

  1. cmd/xl-storage-format-v1.go

    func (c ChecksumInfo) MarshalJSON() ([]byte, error) {
    	info := checksumInfoJSON{
    		Name:      fmt.Sprintf("part.%d", c.PartNumber),
    		Algorithm: c.Algorithm.String(),
    		Hash:      hex.EncodeToString(c.Hash),
    	}
    	return json.Marshal(info)
    }
    
    // UnmarshalJSON - custom checksum info unmarshaller
    func (c *ChecksumInfo) UnmarshalJSON(data []byte) error {
    	var info checksumInfoJSON
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. docs/sts/web-identity.go

    	"github.com/minio/minio-go/v7/pkg/credentials"
    )
    
    // Returns a base64 encoded random 32 byte string.
    func randomState() string {
    	b := make([]byte, 32)
    	rand.Read(b)
    	return base64.RawURLEncoding.EncodeToString(b)
    }
    
    var (
    	stsEndpoint    string
    	configEndpoint string
    	clientID       string
    	clientSec      string
    	clientScopes   string
    	port           int
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Viewed (3)
  3. cmd/streaming-signature-v4.go

    	trailerKVSeparator            = ":"
    )
    
    // getChunkSignature - get chunk signature.
    // Does not update anything in cr.
    func (cr *s3ChunkedReader) getChunkSignature() string {
    	hashedChunk := hex.EncodeToString(cr.chunkSHA256Writer.Sum(nil))
    
    	// Calculate string to sign.
    	alg := signV4ChunkedAlgorithm + "\n"
    	stringToSign := alg +
    		cr.seedDate.Format(iso8601Format) + "\n" +
    		getScope(cr.seedDate, cr.region) + "\n" +
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new User()).map(entity -> {
                    entity.setId(Base64.getUrlEncoder().encodeToString(form.name.getBytes(Constants.CHARSET_UTF_8)));
                    return entity;
                });
            case CrudMode.EDIT:
                if (form instanceof EditForm) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.9K bytes
    - Viewed (0)
  5. docs/debugging/xl-meta/main.go

    		Signature string
    		Type      uint8
    		Flags     uint8
    		EcM, EcN  uint8 // Note that these will be 0/0 for non-v2 objects and older xl.meta
    	}{
    		VersionID: hex.EncodeToString(z.VersionID[:]),
    		ModTime:   time.Unix(0, z.ModTime),
    		Signature: hex.EncodeToString(z.Signature[:]),
    		Type:      z.Type,
    		Flags:     z.Flags,
    		EcM:       z.EcM,
    		EcN:       z.EcN,
    	}
    	return json.Marshal(tmp)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  6. src/main/java/org/codelibs/fess/app/web/admin/role/AdminRoleAction.java

            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new Role()).map(entity -> {
                    entity.setId(Base64.getUrlEncoder().encodeToString(form.name.getBytes(Constants.CHARSET_UTF_8)));
                    return entity;
                });
            case CrudMode.EDIT:
                if (form instanceof EditForm) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  7. cmd/signature-v4-utils.go

    		if err != nil {
    			logger.CriticalIf(GlobalContext, err)
    		}
    		sum256 := sha256.Sum256(payload)
    		r.Body = io.NopCloser(bytes.NewReader(payload))
    		return hex.EncodeToString(sum256[:])
    	}
    
    	var (
    		defaultSha256Cksum string
    		v                  []string
    		ok                 bool
    	)
    
    	// For a presigned request we look at the query param for sha256.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. 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.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  9. cmd/site-replication.go

    			if len(meta.TaggingConfigXML) > 0 {
    				tagCfgStr := base64.StdEncoding.EncodeToString(meta.TaggingConfigXML)
    				bms.Tags = &tagCfgStr
    				bms.TagConfigUpdatedAt = meta.TaggingConfigUpdatedAt
    			}
    
    			if len(meta.VersioningConfigXML) > 0 {
    				versioningCfgStr := base64.StdEncoding.EncodeToString(meta.VersioningConfigXML)
    				bms.Versioning = &versioningCfgStr
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  10. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

                        final String converted = URLEncoder.encode(target, Constants.UTF_8);
                        if (target.equals(converted)) {
                            encodedBuf.append(Base64.getUrlEncoder().encodeToString(target.getBytes(Constants.CHARSET_UTF_8)));
                        } else {
                            encodedBuf.append(converted);
                        }
                    } catch (final UnsupportedEncodingException e) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.6K bytes
    - Viewed (1)
Back to top