Files
go-i2p/lib/common/base32/base32.go
Jeff Becker 45656d356f * add hash.go in crypto package
* add base32 / base64 in destination

* add helper functions for base64 / base32
2016-01-28 15:32:09 -05:00

19 lines
358 B
Go

//
// base32 encoding using i2p's alphabet
//
package base32
import (
b32 "encoding/base32"
)
// i2p base32 encoding
var I2PEncoding *b32.Encoding = b32.NewEncoding("abcdefghijklmnopqrstuvwxyz234567")
// wrapper arround encoding for encoding to string
func EncodeToString(data []byte) (str string) {
str = I2PEncoding.EncodeToString(data)
return
}