Documentation ¶
Index ¶
- func AesCBCDecrypt(encData []byte, key []byte, iv []byte) (decData []byte, err error)
- func AesCBCEncrypt(rawData []byte, key []byte, iv []byte) (encData []byte, err error)
- func AesCFBDecrypt(encData []byte, key []byte, iv []byte) (decData []byte, err error)
- func AesCFBEncrypt(rawData []byte, key []byte, iv []byte) (encData []byte, err error)
- func Hk4eAbilityHashCode(ability string) int32
- func Md5Str(inputStr string) string
- func RsaDecrypt(encData []byte, privKey *rsa.PrivateKey) (decData []byte, err error)
- func RsaEncrypt(rawData []byte, pubKey *rsa.PublicKey) (encData []byte, err error)
- func RsaParsePrivKey(privKeyPem []byte) (*rsa.PrivateKey, error)
- func RsaParsePubKey(pubKeyPem []byte) (*rsa.PublicKey, error)
- func RsaParsePubKeyByPrivKey(privKeyPem []byte) (*rsa.PublicKey, error)
- func RsaSign(rawData []byte, privKey *rsa.PrivateKey) (signData []byte, err error)
- func RsaVerify(rawData []byte, signData []byte, pubKey *rsa.PublicKey) (ok bool, err error)
- func Sha1Str(inputStr string) string
- func Sha256Str(inputStr string) string
- func Xor(data []byte, key []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
func AesCBCEncrypt ¶
func AesCFBDecrypt ¶
func AesCFBEncrypt ¶
func Hk4eAbilityHashCode ¶
func RsaDecrypt ¶
func RsaDecrypt(encData []byte, privKey *rsa.PrivateKey) (decData []byte, err error)
func RsaEncrypt ¶
func RsaParsePrivKey ¶
func RsaParsePrivKey(privKeyPem []byte) (*rsa.PrivateKey, error)
func RsaParsePubKeyByPrivKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.