Browse Source

increase password key gen to len 64

Abhishek Kondur 2 years ago
parent
commit
f509dffabb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      logic/accesskeys.go

+ 1 - 1
logic/accesskeys.go

@@ -223,5 +223,5 @@ func genKeyName() string {
 
 
 func GenKey() string {
 func GenKey() string {
 	entropy, _ := rand.Int(rand.Reader, maxentropy)
 	entropy, _ := rand.Int(rand.Reader, maxentropy)
-	return entropy.Text(16)[:16]
+	return entropy.Text(62)[:64]
 }
 }