Documentation ¶ Index ¶ func Hash(raw string) string func Token() (string, error) type Box func New(key []byte, purpose string) (*Box, error) func (b *Box) Open(raw []byte, aad string) ([]byte, error) func (b *Box) Seal(raw []byte, aad string) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Hash ¶ func Hash(raw string) string func Token ¶ func Token() (string, error) Types ¶ type Box ¶ type Box struct { // contains filtered or unexported fields } func New ¶ func New(key []byte, purpose string) (*Box, error) func (*Box) Open ¶ func (b *Box) Open(raw []byte, aad string) ([]byte, error) func (*Box) Seal ¶ func (b *Box) Seal(raw []byte, aad string) ([]byte, error) Source Files ¶ View all Source files secrets.go Click to show internal directories. Click to hide internal directories.