Documentation
¶
Index ¶
- func Decrypt(data string) (string, error)
- func DecryptBytes(data []byte) ([]byte, error)
- func DecryptBytesEntropy(data, entropy []byte) ([]byte, error)
- func DecryptEntropy(data, entropy string) (string, error)
- func Encrypt(secret string) (string, error)
- func EncryptBytes(data []byte) ([]byte, error)
- func EncryptBytesEntropy(data, entropy []byte) ([]byte, error)
- func EncryptBytesMachineLocal(data []byte) ([]byte, error)
- func EncryptBytesMachineLocalEntropy(data, entropy []byte) ([]byte, error)
- func EncryptEntropy(secret, entropy string) (string, error)
- func EncryptMachineLocal(secret string) (string, error)
- func EncryptMachineLocalEntropy(secret, entropy string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptBytes ¶
EncryptBytes encrypts a byte array and returns a byte array
func DecryptBytesEntropy ¶ added in v0.3.0
func DecryptEntropy ¶ added in v0.3.0
func EncryptBytes ¶
EncryptBytes encrypts a byte array and returns a byte array
func EncryptBytesEntropy ¶ added in v0.3.0
func EncryptBytesMachineLocal ¶ added in v0.2.0
EncryptBytesMachineLocal encrypts a byte array and returns a byte array and associates the data encrypted with the current computer instead of with an individual user.
func EncryptBytesMachineLocalEntropy ¶ added in v0.3.0
func EncryptEntropy ¶ added in v0.3.0
func EncryptMachineLocal ¶ added in v0.2.0
EncryptMachineLocal a string value to a base64 string and associates the data encrypted with the current computer instead of with an individual user.
func EncryptMachineLocalEntropy ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.