[htmlgrab] Added support for base64 images

This commit is contained in:
Pijus Kamandulis committed 2021-06-09 19:07:07 +03:00
1 parent 01f7879f7e
commit 38f9cdeb09
5 files changed
+95 -14

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
package crypto
import (
"crypto/sha1"
"encoding/hex"
"io"
)
func ShaStr(input string) string {
h := sha1.New()
io.WriteString(h, input)
return hex.EncodeToString(h.Sum(nil))
}