crypt

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 8 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(rawStr string) (res string)

func EncodeBase64 added in v0.3.2

func EncodeBase64(str string) (res string)

Types

type Crypt

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

func NewCrptWithKey added in v0.1.4

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

func NewCrypt added in v0.1.1

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