randomkey

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package randomkey generates cryptographically secure keys of lengths 16, 32 or 64.

Index

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 Random16

func Random16() (*Key, error)

func Random32

func Random32() (*Key, error)

func Random64

func Random64() (*Key, error)

func Random8

func Random8() (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL