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 }
// 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()) }