aes_go

package module
v0.0.0-...-78519fe Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 7 Imported by: 0

README

INSTALL

go get gitee.com/zhoubo99/aes-go

USE

aesG := aes_go.NewAes([]byte("key"))

// encode
pass,err:=aesG.Encode([]byte("Hello"))
if err != nil{
    panic(err)
}
fmt.Println("Hello Encode: ",pass)

// decode
str,err := aesG.Decode(pass)
if err != nil{
    panic(err)
}
fmt.Printf("%s Encode: %s\n",pass,str)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AesG

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

func NewAes

func NewAes(key []byte) *AesG

func (*AesG) Decode

func (a *AesG) Decode(encrypted string) (string, error)

Decode 解密

func (*AesG) Encode

func (a *AesG) Encode(data []byte) (string, error)

Encode 加密

Jump to

Keyboard shortcuts

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