Documentation ¶
Index ¶
- Variables
- func Decrypt(data []byte) ([]byte, error)
- func DecryptS(ptype sdk.VariableType, val sql.NullString, data []byte, clear bool) (string, error)
- func Encrypt(data []byte) ([]byte, error)
- func EncryptS(ptype sdk.VariableType, value string) (sql.NullString, []byte, error)
- func Init(secretBackendBinary string, opts map[string]string) error
- func Status() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Client is a shared instance Client secretbackend.Driver )
Functions ¶
func DecryptS ¶
func DecryptS(ptype sdk.VariableType, val sql.NullString, data []byte, clear bool) (string, error)
DecryptS wrap Decrypt and: - return Placeholder instead of value if not needed - cast returned value in string
func EncryptS ¶
func EncryptS(ptype sdk.VariableType, value string) (sql.NullString, []byte, error)
EncryptS wrap Encrypt and: - return valid string if type is not a password - cipher and returned ciphered value in a []byte if password
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.