mirror of
https://github.com/minio/minio.git
synced 2024-12-28 08:05:55 -05:00
fbafc98edb
- provides three functions - GetRandomAlphaNumeric() - GetRandomAlphaNumericFull() - GetRandomBase64() - ValidAccessKey()
11 lines
176 B
Go
11 lines
176 B
Go
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'
|
|
}
|