endec

package
v0.0.0-...-348a65b Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDecrypt

func AesCBCDecrypt(encData []byte, key []byte, iv []byte) (decData []byte, err error)

func AesCBCEncrypt

func AesCBCEncrypt(rawData []byte, key []byte, iv []byte) (encData []byte, err error)

func AesCFBDecrypt

func AesCFBDecrypt(encData []byte, key []byte, iv []byte) (decData []byte, err error)

func AesCFBEncrypt

func AesCFBEncrypt(rawData []byte, key []byte, iv []byte) (encData []byte, err error)

func Hk4eAbilityHashCode

func Hk4eAbilityHashCode(ability string) int32

func Md5Str

func Md5Str(inputStr string) string

func RsaDecrypt

func RsaDecrypt(encData []byte, privKey *rsa.PrivateKey) (decData []byte, err error)

func RsaEncrypt

func RsaEncrypt(rawData []byte, pubKey *rsa.PublicKey) (encData []byte, err error)

func RsaParsePrivKey

func RsaParsePrivKey(privKeyPem []byte) (*rsa.PrivateKey, error)

func RsaParsePubKey

func RsaParsePubKey(pubKeyPem []byte) (*rsa.PublicKey, error)

func RsaParsePubKeyByPrivKey

func RsaParsePubKeyByPrivKey(privKeyPem []byte) (*rsa.PublicKey, error)

func RsaSign

func RsaSign(rawData []byte, privKey *rsa.PrivateKey) (signData []byte, err error)

func RsaVerify

func RsaVerify(rawData []byte, signData []byte, pubKey *rsa.PublicKey) (ok bool, err error)

func Sha1Str

func Sha1Str(inputStr string) string

func Sha256Str

func Sha256Str(inputStr string) string

func Xor

func Xor(data []byte, key []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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