mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-06 06:24:20 -04:00
* add hash.go in crypto package
* add base32 / base64 in destination * add helper functions for base64 / base32
This commit is contained in:
@ -9,3 +9,9 @@ import (
|
||||
|
||||
// i2p base64 encoding
|
||||
var I2PEncoding *b64.Encoding = b64.NewEncoding("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-~")
|
||||
|
||||
// wrapper arround encoding for encoding to string
|
||||
func EncodeToString(data []byte) (str string) {
|
||||
str = I2PEncoding.EncodeToString(data)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user