Documentation ¶
Index ¶
- type RsaObj
- func (self *RsaObj) CreateRsa1024() error
- func (self *RsaObj) CreateRsa2048() error
- func (self *RsaObj) CreateRsaFile(keyfile, pemfile string) error
- func (self *RsaObj) CreateRsaFileBase64(bits ...int) error
- func (self *RsaObj) Decrypt(msg string) (string, error)
- func (self *RsaObj) Encrypt(msg []byte) (string, error)
- func (self *RsaObj) LoadRsaFile(filePath string) error
- func (self *RsaObj) LoadRsaKeyFileBase64(fileBase64 string) error
- func (self *RsaObj) LoadRsaPemFileBase64(fileBase64 string) error
- func (self *RsaObj) LoadRsaPemFileByte(fileByte []byte) error
- func (self *RsaObj) LoadRsaPubkey(filePath string) error
- func (self *RsaObj) SignBySHA256(msg []byte) ([]byte, error)
- func (self *RsaObj) VerifyBySHA256(msg []byte, sign string) error
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 (*RsaObj) CreateRsa2048 ¶
func (*RsaObj) CreateRsaFile ¶
func (*RsaObj) CreateRsaFileBase64 ¶
func (*RsaObj) LoadRsaFile ¶
func (*RsaObj) LoadRsaKeyFileBase64 ¶
func (*RsaObj) LoadRsaPemFileBase64 ¶
func (*RsaObj) LoadRsaPemFileByte ¶
func (*RsaObj) LoadRsaPubkey ¶
Click to show internal directories.
Click to hide internal directories.