Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindEmojiIndices ¶
FindEmojiIndices will find all parts of a string (rune array) that could potentially be emoji sequences and will return them backwards. they'll be returned backwards in order to allow easily manipulating the data without invalidating the following indexes accidentally. Example:
Hello :world:, what a :nice: day.
would result in
[]int{22,27,6,12}
func GenerateBase32Key ¶
GenerateBase32Key generates a 16 character key containing 2-7 and A-Z. The implementation uses crypto/rand.
func ParseTFACode ¶
ParseTFACodes takes an arbitrary string and checks whether it's a valid 6 digit number for usage as a tfa code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.