Documentation ¶
Index ¶
- type RSA
- type RsaObj
- func (self *RsaObj) CreateRsa1024() error
- func (self *RsaObj) CreateRsa2048() error
- func (self *RsaObj) CreateRsaFile(keyfile, pemfile string) error
- func (self *RsaObj) CreateRsaFileBase64(b ...int) error
- func (self *RsaObj) CreateRsaPemFile(pemfile string) error
- func (self *RsaObj) Decrypt(msg string) (string, error)
- func (self *RsaObj) Encrypt(msg []byte) (string, error)
- func (self *RsaObj) GetPrivateKey() (interface{}, string)
- func (self *RsaObj) GetPublicKey() (interface{}, string)
- func (self *RsaObj) LoadRsaFile(filePath string) error
- func (self *RsaObj) LoadRsaKeyFileBase64(fileBase64 string) error
- func (self *RsaObj) LoadRsaPemFile(filePath string) error
- func (self *RsaObj) LoadRsaPemFileBase64(fileBase64 string) error
- func (self *RsaObj) Sign(msg []byte) ([]byte, error)
- func (self *RsaObj) Verify(msg, sign []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RsaObj ¶
type RsaObj struct { PrivateKeyBase64 string PublicKeyBase64 string // contains filtered or unexported fields }
func (*RsaObj) CreateRsa1024 ¶
func (*RsaObj) CreateRsa2048 ¶
func (*RsaObj) CreateRsaFile ¶
func (*RsaObj) CreateRsaFileBase64 ¶
func (*RsaObj) CreateRsaPemFile ¶ added in v1.0.31
func (*RsaObj) GetPrivateKey ¶ added in v1.0.5
func (*RsaObj) GetPublicKey ¶ added in v1.0.5
func (*RsaObj) LoadRsaFile ¶
func (*RsaObj) LoadRsaKeyFileBase64 ¶
func (*RsaObj) LoadRsaPemFile ¶ added in v1.0.31
func (*RsaObj) LoadRsaPemFileBase64 ¶
Click to show internal directories.
Click to hide internal directories.