icrypto

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecryptCBC

func AESDecryptCBC(key, iv, encrypted []byte) (origData []byte, err error)

func AESEncryptCBC

func AESEncryptCBC(key, iv []byte, origData []byte) (encrypted []byte, err error)

func HmacSha1ToBase64

func HmacSha1ToBase64(rawStr, key string) string

HmacSha1ToBase64 HMAC-SHA1

func HmacSha1ToHex

func HmacSha1ToHex(rawStr, key string) string

HmacSha1ToHex

func HmacSha256ToBase64

func HmacSha256ToBase64(rawStr, key string) string

HmacSha256ToBase64 HMAC-SHA256

func HmacSha256ToHex

func HmacSha256ToHex(rawStr, key string) string

HmacSha256ToHex

func Md5String

func Md5String(s string, multi ...string) string

Md5String md5(str...)

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func PasswordSlatMD5

func PasswordSlatMD5(password, slat string) string

PasswordSlatMD5 md5(password+slat)

func UnPadding

func UnPadding(origData []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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