Documentation ¶
Index ¶
- func CheckFileMD5(fullpath string, checksum string) (ok bool)
- func Compress(b []byte) []byte
- func Decompress(data []byte) []byte
- func GetBytesChecksum(bs []byte, m string) string
- func GetBytesMD5(bs []byte) string
- func GetFileMD5(path string) (checksum string, err error)
- func GetStringChecksum(str string, m string) string
- func GetStringMD5(str string) string
- func LoadYaml(path string, i interface{}) error
- func RsaGenKeypair() (priKey string, pubKey string)
- func RsaGetPublicKey() string
- func RsaLoadPrivateKey(path string) error
- func RsaSavePrivateKey(priKey *rsa.PrivateKey, filepath string) error
- func RsaSha256Sign(i interface{}) (signature, pubKey string, err error)
- func RsaSha256SignHash(hash string) (signature, pubKey string, err error)
- func RsaSha256Verify(i interface{}, signature, pubKey string) bool
- func RsaSha256VerifyHash(hash, signature, pubKey string) bool
- func SaveYaml(path string, i interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileMD5 ¶
func Decompress ¶
func GetBytesChecksum ¶
func GetBytesMD5 ¶
func GetFileMD5 ¶
func GetStringChecksum ¶
func GetStringMD5 ¶
func RsaGenKeypair ¶
func RsaGetPublicKey ¶
func RsaGetPublicKey() string
func RsaLoadPrivateKey ¶
func RsaSavePrivateKey ¶
func RsaSavePrivateKey(priKey *rsa.PrivateKey, filepath string) error
func RsaSha256Sign ¶
func RsaSha256SignHash ¶
func RsaSha256Verify ¶
func RsaSha256VerifyHash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.