encrypt

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(s string) (string, error)

func Base64Encode

func Base64Encode(s string) (result string)

func Md5

func Md5(s string) (result string)

func Sha1

func Sha1(s string) (result string)

func Sha256

func Sha256(s string) (result string)

func Sha512

func Sha512(s string) (result string)

Types

type AesECB added in v0.4.0

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

func NewEcb added in v0.4.0

func NewEcb(key []byte, blocks ...int) *AesECB

func (*AesECB) Decrypt added in v0.4.0

func (a *AesECB) Decrypt(src []byte, isPad ...bool) ([]byte, error)

When isPad is false, use Nopadding mode

func (*AesECB) Encrypt added in v0.4.0

func (a *AesECB) Encrypt(src []byte, isPad ...bool) ([]byte, error)

When isPad is false, use Nopadding mode

Jump to

Keyboard shortcuts

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