mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Add a new pkg/crypto/keys, first cut
- provides three functions
- GetRandomAlphaNumeric()
- GetRandomAlphaNumericFull()
- GetRandomBase64()
- ValidAccessKey()
This commit is contained in:
10
pkg/utils/crypto/keys/common.go
Normal file
10
pkg/utils/crypto/keys/common.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package keys
|
||||
|
||||
const (
|
||||
MINIO_ACCESS_ID = 20
|
||||
MINIO_SECRET_ID = 40
|
||||
)
|
||||
|
||||
func isalnum(c byte) bool {
|
||||
return '0' <= c && c <= '9' || 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z'
|
||||
}
|
||||
Reference in New Issue
Block a user