crypto

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BHexEncodeSha256

func BHexEncodeSha256(b []byte) string

func ComparePass

func ComparePass(hash, pass string) bool

func DecodeConfig

func DecodeConfig(value interface{}, key string) error

func DesDecoding

func DesDecoding(pwd, key string) (string, error)

DesDecoding key only supports 8 bytes

func DesEncoding

func DesEncoding(src, key string) (string, error)

DesEncoding key only supports 8 bytes

func DesEncodingMap

func DesEncodingMap(m map[string]interface{}, key string) error

func EncodeConfig

func EncodeConfig(value interface{}, key string) error

func EncoderPass

func EncoderPass(pass string) string

func HexEncodeSha256

func HexEncodeSha256(s string) string

func HexEncodeSha256B

func HexEncodeSha256B(b []byte) []byte

func HmacSha256

func HmacSha256(msg, secret []byte) []byte

func PadPwd

func PadPwd(srcByte []byte, blockSize int) []byte

func UnPadPwd

func UnPadPwd(dst []byte) []byte

func WriteEncodeConfig

func WriteEncodeConfig(value interface{}, key, src, out string, options ...viper.DecoderConfigOption) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL