Documentation ¶
Index ¶
- Constants
- func DecryptFromContainer(container passdata.CryptoContainer) ([]byte, error)
- func EncryptToContainer(payload []byte) (passdata.CryptoContainer, error)
- func EncryptToContainerWithPassword(password []byte, payload []byte) (passdata.CryptoContainer, error)
- func GeneratePassword(length int, allowedChars string) ([]byte, error)
- type Encrypted
- type Key
Constants ¶
View Source
const AllowedCharsAll = "_!#$%&*+,-.0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
View Source
const AllowedCharsShellFriendly = "_%+-.0123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
Variables ¶
This section is empty.
Functions ¶
func DecryptFromContainer ¶
func DecryptFromContainer(container passdata.CryptoContainer) ([]byte, error)
func EncryptToContainer ¶
func EncryptToContainer(payload []byte) (passdata.CryptoContainer, error)
func EncryptToContainerWithPassword ¶
func EncryptToContainerWithPassword(password []byte, payload []byte) (passdata.CryptoContainer, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.