mirror of
https://github.com/pikami/rss-dl.git
synced 2026-11-14 06:01:44 +00:00
[htmlgrab] Added support for base64 images
This commit is contained in:
1 parent
01f7879f7e
commit
38f9cdeb09
5 files changed
+95
-14
No files matched your search
@@ -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))
|
||||
}
|
||||
Reference in new issue
Block a user