Documentation ¶ Overview ¶ Package randomkey generates cryptographically secure keys of lengths 16, 32 or 64. Index ¶ type Key func FromBase64(s string) (*Key, error) func FromHex(s string) (*Key, error) func Random8() (*Key, error) func Random16() (*Key, error) func Random32() (*Key, error) func Random64() (*Key, error) func (k Key) Base64() string func (k Key) Bytes() []byte func (k Key) GoString() string func (k Key) Hex() string func (k Key) Len() int func (k Key) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Key ¶ type Key []byte func FromBase64 ¶ func FromBase64(s string) (*Key, error) func FromHex ¶ func FromHex(s string) (*Key, error) func Random8 ¶ func Random8() (*Key, error) func Random16 ¶ func Random16() (*Key, error) func Random32 ¶ func Random32() (*Key, error) func Random64 ¶ func Random64() (*Key, error) func (Key) Base64 ¶ func (k Key) Base64() string func (Key) Bytes ¶ func (k Key) Bytes() []byte func (Key) GoString ¶ func (k Key) GoString() string func (Key) Hex ¶ func (k Key) Hex() string func (Key) Len ¶ func (k Key) Len() int func (Key) String ¶ func (k Key) String() string Source Files ¶ View all Source files randomkey.go Click to show internal directories. Click to hide internal directories.