encrypt

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(crypted, key []byte) ([]byte, error)

func AesEncrypt

func AesEncrypt(origData, key []byte) ([]byte, error)

func EcbDecrypt

func EcbDecrypt(data, key []byte) ([]byte, error)

func EcbEncrypt

func EcbEncrypt(data, key []byte) ([]byte, error)

func GeneratePwd

func GeneratePwd(password string) (pwd, salt string)

func GetPwd

func GetPwd(password, salt string) string

func Md5 added in v0.0.53

func Md5(str string) string

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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