Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretBox ¶
type SecretBox interface { // SealString will encrypt string, returning hex-encoded version // of result SealString(message string) (string, error) Seal(message []byte) ([]byte, error) // OpenString will decrypt hex-encoded string, returning // hexencoded version of result OpenString(hexmessage string) (string, error) Open(message []byte) ([]byte, error) }
SecretBox presents simple interface for golang.org/x/crypto/nacl/secretbox
func NewSecretBox ¶
NewSecretBox creates SecretBox with key
Click to show internal directories.
Click to hide internal directories.