+frontend empty
This commit is contained in:
Miki 2023-12-05 13:48:13 +01:00
parent 54a47c8a95
commit b1745ede2e
59 changed files with 1197 additions and 13 deletions

12
backend/hash.go Normal file
View file

@ -0,0 +1,12 @@
package main
import (
"crypto/sha256"
"fmt"
)
func CalcId(str string, len int) string {
id := sha256.Sum256([]byte(str))
return fmt.Sprintf("%X", id)[0:len]
}