Documentation ¶
Index ¶
- Constants
- func Base62Decode(str string) int64
- func Base62Encode(number int64) string
- func DecryptDESECB4Base64(src, key string) string
- func DecryptDESECB4Hex(src, key string) string
- func EncryptDESECB2Base64(src, key string) string
- func EncryptDESECB2Hex(src, key string) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func Sha1(str string) string
- func Sha1File(path string) (string, error)
- func Sha1V1(str string) string
- func Sha256ByByteV1(by []byte) string
- func Sha256V1(str string) string
Constants ¶
View Source
const ShortChar = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
Variables ¶
This section is empty.
Functions ¶
func Base62Decode ¶
func Base62Encode ¶
func DecryptDESECB4Base64 ¶
des ECB hex解密: src := xcrypto.DecryptDESECB4Base64(xcrypto.EncryptDESECB2Base64("hello'!@123", "basesoft"),"basesoft")
func DecryptDESECB4Hex ¶
des ECB hex解密: src := xcrypto.DecryptDESECB4Hex(xcrypto.EncryptDESECB2Hex("123456", "basesoft"),"basesoft")
func EncryptDESECB2Base64 ¶
des ECB base64加密:xcrypto.EncryptDESECB2Base64("密码", "basesoft")
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func Sha256ByByteV1 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.