Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAuth ¶
DecryptAuth decrypts a given base64 encoded ciphertext byte array and IV byte array and returns the plaintext as byte array
func EncryptAuth ¶
EncryptAuth encrypts a plaintext byte array with authentication data byte array and returns the IV and CipherText as byte array
func RandDuration ¶ added in v0.1.7
RandDuration returns a random time.Duration in u with a maximum value of the given n
func RandomBytes ¶
RandomBytes uses the crypto/rand generator to generate random bytes. The amount of provided random bytes is controlled by the n argument
func RandomStringSecure ¶
RandomStringSecure returns a random, n long string of characters. The character set is based on the s (special chars) and h (human readable) boolean arguments. This method uses the crypto/random package and therfore is cryptographically secure
Types ¶
This section is empty.