Documentation ¶
Index ¶
- func Base16Decode(encoded string) []byte
- func Base16Encode(bytes []byte) string
- func Base32Decode(encoded string) []byte
- func Base32Encode(bytes []byte) string
- func Base64Decode(encoded string) []byte
- func Base64Encode(bytes []byte) string
- func RandomBoolean() bool
- func RandomBytes(size int) []byte
- func RandomInteger(max int) int
- func RandomProbability() float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base16Decode ¶
This function decodes the specified base 16 encoded string into its corresponding decoded bytes.
func Base16Encode ¶
This function encodes the specified bytes as a base 16 encoded string using standard base 16 encoding with no padding.
func Base32Decode ¶
This function decodes the specified base 32 string into its corresponding bytes.
func Base32Encode ¶
This function encodes the specified bytes as a base 32 string using the ten digits and all UPPER CASE letters except 'E', 'I', 'O', and 'U'.
func Base64Decode ¶
This function decodes the specified base 64 encoded string into its corresponding decoded bytes.
func Base64Encode ¶
This function encodes the specified bytes as a base 64 encoded string using standard base 64 encoding with no padding.
func RandomBoolean ¶
func RandomBoolean() bool
This function generates a cryptographically secure random boolean.
func RandomBytes ¶
This function generates a cryptographically secure array of random bytes.
func RandomInteger ¶
This function generates a cryptographically secure random integer in the range [0..max].
func RandomProbability ¶
func RandomProbability() float64
This function generates a cryptographically secure random probability in the range [0..1].
Types ¶
This section is empty.