cipher

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AesCipher

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

AesCipher aes加密解密

func NewAes

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

NewAes 创建一个新的AesCipher

func (*AesCipher) DecryptBase64

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

DecryptBase64 解密

func (*AesCipher) EncryptBase64

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

EncryptBase64 加密

type AesInterface

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

AesInterface aes加密解密接口

Jump to

Keyboard shortcuts

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