crypt

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func DecodeBase64

func DecodeBase64(rawStr string) (res string)

func EncodeBase64

func EncodeBase64(str string) (res string)

Types

type Crypt

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

func NewCrptWithKey

func NewCrptWithKey(key []byte) (c *Crypt)

func NewCrypt

func NewCrypt(password string) (c *Crypt)

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