encryptHelper

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aes128Decrypt

func Aes128Decrypt(crypted, key []byte, IV []byte) ([]byte, error)

func Aes128Encrypt

func Aes128Encrypt(origData, key []byte, IV []byte) ([]byte, error)

func CheckPasswordHash

func CheckPasswordHash(password, salt, originPassword string) bool

CheckPasswordHash 验证密码

func EncodeMD5

func EncodeMD5(value string) string

func HashPassword

func HashPassword(password string) (salt string, dbPassword string)

HashPassword 密码加密

func HashSaltPassword

func HashSaltPassword(salt string, password string) (dbPassword string)

HashSaltPassword 密码加密

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func PswDecrypt

func PswDecrypt(src string, skey string, ivParameter string) string

解密

func PswEncrypt

func PswEncrypt(src string, skey string, ivParameter string) string

加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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