Crypto

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto struct {
}

func New

func New() *Crypto

func (*Crypto) AesDecryptCBC

func (this *Crypto) AesDecryptCBC(encrypted []byte) (decrypted []byte)

func (*Crypto) AesEncryptCBC

func (this *Crypto) AesEncryptCBC(origData []byte) (encrypted []byte)

func (*Crypto) DecrptogRSA

func (this *Crypto) DecrptogRSA(src []byte, path string) (res []byte, err error)

对数据进行加密操作

func (*Crypto) EncyptogRSA

func (this *Crypto) EncyptogRSA(src []byte, path string) (res []byte, err error)

func (*Crypto) Md5

func (this *Crypto) Md5(str string) string

func (*Crypto) RSAGenKey

func (this *Crypto) RSAGenKey(bits int, folderPath string) error

func (*Crypto) SessionId

func (this *Crypto) SessionId() string

func (*Crypto) Sha256

func (this *Crypto) Sha256(str string) string

Jump to

Keyboard shortcuts

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