Documentation ¶
Index ¶
- Constants
- func DecodeString(s string) ([]byte, error)
- func Decrypt(ciphertext []byte, key []byte, nonce []byte) string
- func EncodeByte(b []byte) string
- func Encrypt(plaintext string, key []byte, nonce []byte) []byte
- func GenerateMasterKey() []byte
- func GenerateNonce() []byte
- func GenerateRandomKey(l int) (k []byte)
- func Sha256Sum(input string) string
Constants ¶
View Source
const KeyMask = "******"
Variables ¶
This section is empty.
Functions ¶
func DecodeString ¶
func EncodeByte ¶
func GenerateMasterKey ¶
func GenerateMasterKey() []byte
func GenerateNonce ¶
func GenerateNonce() []byte
func GenerateRandomKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.