Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upsilon ¶
type Upsilon struct {
// contains filtered or unexported fields
}
Upsilon is an identifier that can be initialized with a custom length composed of a user specified time, hash, and random bits
func FromBase64 ¶
FromBase64 creates a new Upsilon from a base64 encoded string
func New ¶
func New(timeSize, hashSize, randomSize int, input ...[]byte) (returnUpsilon *Upsilon, returnError error)
New creates a new Upsilon arg input is only required if arg hashSize is greater than zero
func (*Upsilon) Base64 ¶
Base64 returns the full raw bytes of an Upsilon encoded in standard padded base64
func (*Upsilon) HashBase64 ¶
HashBase64 returns only the hash initialization bytes of an Upsilon encoded in standard padded base64
func (*Upsilon) RandBase64 ¶
RandBase64 returns only the random bytes of an Upsilon encoded in standard padded base64
func (*Upsilon) TimeBase64 ¶
TimeBase64 returns only the time bytes of an Upsilon encoded in standard padded base64