gorsa

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RsaObj

type RsaObj struct {
	PubkeyBase64 string
	PrikeyBase64 string
	// contains filtered or unexported fields
}

func (*RsaObj) CreateRsa1024

func (self *RsaObj) CreateRsa1024() error

func (*RsaObj) CreateRsa2048

func (self *RsaObj) CreateRsa2048() error

func (*RsaObj) CreateRsaFile

func (self *RsaObj) CreateRsaFile(keyfile, pemfile string) error

func (*RsaObj) CreateRsaFileBase64

func (self *RsaObj) CreateRsaFileBase64(bits ...int) error

func (*RsaObj) Decrypt

func (self *RsaObj) Decrypt(msg string) (string, error)

func (*RsaObj) Encrypt

func (self *RsaObj) Encrypt(msg []byte) (string, error)

func (*RsaObj) LoadRsaFile

func (self *RsaObj) LoadRsaFile(filePath string) error

func (*RsaObj) LoadRsaKeyFileBase64

func (self *RsaObj) LoadRsaKeyFileBase64(fileBase64 string) error

func (*RsaObj) LoadRsaPemFileBase64

func (self *RsaObj) LoadRsaPemFileBase64(fileBase64 string) error

func (*RsaObj) LoadRsaPemFileByte

func (self *RsaObj) LoadRsaPemFileByte(fileByte []byte) error

func (*RsaObj) LoadRsaPubkey

func (self *RsaObj) LoadRsaPubkey(filePath string) error

func (*RsaObj) SignBySHA256

func (self *RsaObj) SignBySHA256(msg []byte) ([]byte, error)

func (*RsaObj) VerifyBySHA256

func (self *RsaObj) VerifyBySHA256(msg []byte, sign string) error

Jump to

Keyboard shortcuts

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