Exemple #1
0
func Encode(Input string) string {
	now := time.Now()
	nanos := now.UnixNano()
	s := strconv.FormatInt(nanos, 10)
	encoded := basex.Encode(s)
	fmt.Println("Encoded : ", encoded)
	return encoded
}
Exemple #2
0
// Basex returns basex representation of hash
func (f File) Basex() string {
	d := f.ByteID()
	n := big.NewInt(0)
	n.SetBytes(d)
	return basex.Encode(n.String())
}