encry

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileMd5

func FileMd5(filepath string) (string, error)

func Md5S

func Md5S(str string) string

func PKCS5Adding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func Sha1

func Sha1(str string) string

Types

type AesEncrypt

type AesEncrypt struct {
	// contains filtered or unexported fields
}

func NewAesEncryptInstance

func NewAesEncryptInstance(key string, secret string) (*AesEncrypt, error)

func (*AesEncrypt) AesBase64Decrypt

func (a *AesEncrypt) AesBase64Decrypt(b string) (string, error)

AesBase64Decrypt aes Base64 解密

func (*AesEncrypt) AesBase64Encrypt

func (a *AesEncrypt) AesBase64Encrypt(in string) (string, error)

AesBase64Encrypt aes Base64 加密

Jump to

Keyboard shortcuts

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