basic common app packages

This commit is contained in:
2025-06-16 22:19:00 +05:30
parent 8654f21b62
commit 0240ec154e
49 changed files with 5481 additions and 232 deletions

25
crypto/hash_test.go Normal file
View File

@@ -0,0 +1,25 @@
package crypto
import "testing"
func TestMD5(t *testing.T) {
b := []byte("hello there")
h := MD5(b)
if h == "" {
t.Error("failed to hasg")
return
}
println(h)
}
func TestSha256(t *testing.T) {
b := []byte("hello there")
h := SHA256(b)
if h == "" {
t.Error("failed to hasg")
return
}
println(h)
}