Documentation ¶
Index ¶
- func GenerateRandomBytes() ([]byte, error)
- func New() []byte
- func NewBase32() string
- func NewBase32WithLength(length int) string
- func NewBase62() string
- func NewBase62WithLength(length int) string
- func NewBase64() string
- func NewBase64WithLength(length int) string
- func NewHex() string
- func NewHexWithLength(length int) string
- func NewWithLength(length int) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomBytes ¶ added in v0.1.0
GenerateRandomBytes returns a random []byte.
func NewBase32 ¶
func NewBase32() string
NewBase32 creates a new random []byte and returns it as a base32 string or panics.
func NewBase32WithLength ¶
NewBase32WithLength creates a new random []byte and returns it as a base32 string or panics.
func NewBase62 ¶ added in v0.1.0
func NewBase62() string
NewBase62 creates a new random []byte and returns it as a base62 string or panics.
func NewBase62WithLength ¶ added in v0.1.0
NewBase62WithLength creates a new random []byte and returns it as a base62 string or panics.
func NewBase64 ¶
func NewBase64() string
NewBase64 creates a new random []byte and returns it as a base64 string or panics.
func NewBase64WithLength ¶
NewBase64WithLength creates a new random []byte and returns it as a base64 string or panics.
func NewHex ¶
func NewHex() string
NewHex creates a new random []byte and returns it as a hex string or panics.
func NewHexWithLength ¶
NewHexWithLength creates a new random []byte and returns it as a hex string or panics.
func NewWithLength ¶
NewWithLength creates a new random []byte or panics.
Types ¶
This section is empty.