cryptx

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 6 Imported by: 0

README

cryptx

加解密包

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptSenInfo

func DecryptSenInfo(encInfo string) (string, error)

DecryptSenInfo decrypt

func EncryptSenInfo

func EncryptSenInfo(info string) string

EncryptSenInfo encrypt

func InitSenKey added in v0.5.3

func InitSenKey(pw string) error

InitSenKey init sensitive key

Types

type SenInfoEncryptor

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

SenInfoEncryptor encryptor

func NewFromStrKey

func NewFromStrKey(keyStr string) (*SenInfoEncryptor, error)

NewFromStrKey new from string

func NewSenInfoEncryptor

func NewSenInfoEncryptor(key []byte) (*SenInfoEncryptor, error)

NewSenInfoEncryptor new from bytes

func (*SenInfoEncryptor) Decrypt

func (p *SenInfoEncryptor) Decrypt(encInfo string) (string, error)

Decrypt decrypt

func (*SenInfoEncryptor) Encrypt

func (p *SenInfoEncryptor) Encrypt(info string) string

Encrypt encrypt

Jump to

Keyboard shortcuts

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