Documentation ¶ Index ¶ Variables func Key(password string, salt []byte, iterationCount, keyLength int) []byte func RandBytes(length int) ([]byte, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrRandBytes = errors.New("error generating random bytes") ) Functions ¶ func Key ¶ func Key(password string, salt []byte, iterationCount, keyLength int) []byte Key derives a secure encryption key from a password using the PBKDF2 key-derivation algorithm with an SHA-256 hash. The returned key will have keyLength bytes. func RandBytes ¶ func RandBytes(length int) ([]byte, error) RandBytes generates an arbitrary-length slice of cryptographically-secure pseudorandom bytes. Types ¶ This section is empty. Source Files ¶ View all Source files utils.go Directories ¶ Show internal Expand all Path Synopsis aes Package crypto/aes is a symmetric encryption library built from secure, industry-standard components. Package crypto/aes is a symmetric encryption library built from secure, industry-standard components. Click to show internal directories. Click to hide internal directories.