crypt

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCrypt = &Crypt{
	key: []byte("x^)dixf&*1$free]"),
}

Functions

func DecodeBase64

func DecodeBase64(str string) (res string)

Types

type Crypt

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

func (*Crypt) AesDecrypt

func (that *Crypt) AesDecrypt(crypted []byte) ([]byte, error)

func (*Crypt) AesEncrypt

func (that *Crypt) AesEncrypt(origData []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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