cipher

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 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 NewAesCipher

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

NewAesCipher 创建一个新的AesCipher

func (*AesCipher) DecryptAesBase64

func (a *AesCipher) DecryptAesBase64(b string) (string, error)

DecryptAesBase64 解密

func (*AesCipher) EncryptAesBase64

func (a *AesCipher) EncryptAesBase64(in string) (string, error)

EncryptAesBase64 加密

Jump to

Keyboard shortcuts

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