Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KeySize is the default key size for most types of encryption KeySize = 32 // NonceSize is the default NonceSize NonceSize = 24 // GCMNonceSize is the default gcmnonce size GCMNonceSize = 12 )
Variables ¶
This section is empty.
Functions ¶
func GCMNonce ¶
func GCMNonce() (*[GCMNonceSize]byte, error)
GCMNonce returns a nonce with a GCMNonceSize
func RandString ¶
RandString returns a random string with the given length
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.