Documentation ¶
Index ¶
- func BHexEncodeSha256(b []byte) string
- func ComparePass(hash, pass string) bool
- func DecodeConfig(value interface{}, key string) error
- func DesDecoding(pwd, key string) (string, error)
- func DesEncoding(src, key string) (string, error)
- func DesEncodingMap(m map[string]interface{}, key string) error
- func EncodeConfig(value interface{}, key string) error
- func EncoderPass(pass string) string
- func HexEncodeSha256(s string) string
- func HexEncodeSha256B(b []byte) []byte
- func HmacSha256(msg, secret []byte) []byte
- func PadPwd(srcByte []byte, blockSize int) []byte
- func UnPadPwd(dst []byte) []byte
- func WriteEncodeConfig(value interface{}, key, src, out string, options ...viper.DecoderConfigOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BHexEncodeSha256 ¶
func ComparePass ¶
func DecodeConfig ¶
func DesDecoding ¶
DesDecoding key only supports 8 bytes
func DesEncoding ¶
DesEncoding key only supports 8 bytes
func DesEncodingMap ¶
func EncodeConfig ¶
func EncoderPass ¶
func HexEncodeSha256 ¶
func HexEncodeSha256B ¶
func HmacSha256 ¶
func WriteEncodeConfig ¶
func WriteEncodeConfig(value interface{}, key, src, out string, options ...viper.DecoderConfigOption) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.