Login technically works

This commit is contained in:
2022-03-04 01:56:15 +01:00
parent b5aecea322
commit 3aade31bd6
13 changed files with 769 additions and 130 deletions
+13
View File
@@ -0,0 +1,13 @@
package util
import (
"crypto/rand"
"encoding/base64"
)
func RandomHash(len int) string {
buff := make([]byte, len)
rand.Read(buff)
str := base64.StdEncoding.EncodeToString(buff)
return str[:len]
}