Documentation ¶
Index ¶
- type Cipher
- type EccObj
- func (self *EccObj) CreateS256ECC() error
- func (self *EccObj) Decrypt(msg string) (string, error)
- func (self *EccObj) Encrypt(msg []byte) (string, error)
- func (self *EccObj) GetPrivateKey() (interface{}, string)
- func (self *EccObj) GetPublicKey() (interface{}, string)
- func (self *EccObj) Sign(msg []byte) ([]byte, error)
- func (self *EccObj) Verify(msg, sign []byte) error
- 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 EccObj ¶
type EccObj struct { PrivateKeyBase64 string PublicKeyBase64 string // contains filtered or unexported fields }
func (*EccObj) CreateS256ECC ¶
func (*EccObj) GetPrivateKey ¶
func (*EccObj) GetPublicKey ¶
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 ¶
func (*RsaObj) GetPrivateKey ¶
func (*RsaObj) GetPublicKey ¶
func (*RsaObj) LoadRsaFile ¶
func (*RsaObj) LoadRsaKeyFileBase64 ¶
func (*RsaObj) LoadRsaPemFile ¶
func (*RsaObj) LoadRsaPemFileBase64 ¶
Click to show internal directories.
Click to hide internal directories.