add readUntil

This commit is contained in:
2023-06-29 00:57:52 +01:00
parent 9649c33217
commit af934e0429
18 changed files with 302 additions and 103 deletions

13
src/sha256.go Normal file
View File

@@ -0,0 +1,13 @@
package main
import (
"crypto/sha256"
"fmt"
)
func sha256Hash(s string) string {
h := sha256.New()
h.Write([]byte(s))
bs := h.Sum(nil)
return fmt.Sprintf("%x", bs)
}