- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for encodeToString (0.23 sec)
-
cmd/hasher.go
import ( "crypto/md5" "encoding/hex" "github.com/minio/minio/internal/hash/sha256" ) // getSHA256Hash returns SHA-256 hash in hex encoding of given data. func getSHA256Hash(data []byte) string { return hex.EncodeToString(getSHA256Sum(data)) } // getSHA256Hash returns SHA-256 sum of given data. func getSHA256Sum(data []byte) []byte { hash := sha256.New() hash.Write(data) return hash.Sum(nil) }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri May 27 13:00:19 GMT 2022 - 1.4K bytes - Viewed (0) -
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.
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 8.4K bytes - Viewed (0) -
internal/crypto/sse-s3.go
metadata[MetaIV] = base64.StdEncoding.EncodeToString(sealedKey.IV[:]) metadata[MetaSealedKeyS3] = base64.StdEncoding.EncodeToString(sealedKey.Key[:]) if len(kmsKey) > 0 && keyID != "" { // We use a KMS -> Store key ID and sealed KMS data key. metadata[MetaKeyID] = keyID metadata[MetaDataEncryptionKey] = base64.StdEncoding.EncodeToString(kmsKey) } return metadata }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 8.5K bytes - Viewed (0) -
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", }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Feb 02 00:13:57 GMT 2024 - 6.8K bytes - Viewed (0) -
internal/crypto/sse-c.go
} if metadata == nil { metadata = make(map[string]string, 3) } metadata[MetaAlgorithm] = SealAlgorithm metadata[MetaIV] = base64.StdEncoding.EncodeToString(sealedKey.IV[:]) metadata[MetaSealedKeySSEC] = base64.StdEncoding.EncodeToString(sealedKey.Key[:]) return metadata } // ParseMetadata extracts all SSE-C related values from the object metadata
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 5.2K bytes - Viewed (0) -
cmd/erasure-metadata-utils_test.go
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 7.4K bytes - Viewed (0) -
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(); }
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 1.8K bytes - Viewed (0) -
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 = ""
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sat Feb 25 04:09:53 GMT 2023 - 2.2K bytes - Viewed (0) -
docs/debugging/inspect/export.go
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Nov 08 15:58:02 GMT 2022 - 9.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CurlHelper.java
if (StringUtil.isNotBlank(username) && StringUtil.isNotBlank(password)) { final String value = username + ":" + password; final String basicAuth = "Basic " + java.util.Base64.getEncoder().encodeToString(value.getBytes(StandardCharsets.UTF_8)); request.header("Authorization", basicAuth); } if (sslSocketFactory != null) { request.sslSocketFactory(sslSocketFactory); }
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4.8K bytes - Viewed (0)