mirror of
https://github.com/pikami/rss-dl.git
synced 2026-06-12 15:37:00 +01:00
[htmlgrab] Added support for base64 images
This commit is contained in:
@@ -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