cipher

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MD5

func MD5(str string) string

MD5 returns the MD5 checksum of the data.

Types

type AesCipher

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

func NewAes added in v1.2.0

func NewAes(key, iv string) (*AesCipher, error)

NewAes 创建一个新的AesCipher

func (*AesCipher) DecryptBase64 added in v1.2.1

func (a *AesCipher) DecryptBase64(b string) ([]byte, error)

DecryptBase64 解密

func (*AesCipher) EncryptBase64 added in v1.2.1

func (a *AesCipher) EncryptBase64(origData []byte) (string, error)

EncryptBase64 加密

type AesInterface added in v1.2.1

type AesInterface interface {
	EncryptBase64(in []byte) (string, error)
	DecryptBase64(b string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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