[htmlgrab] Added support for base64 images

This commit is contained in:
Pijus Kamandulis
2021-06-09 19:07:07 +03:00
parent 01f7879f7e
commit 38f9cdeb09
5 changed files with 95 additions and 14 deletions
+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))
}