rsa

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(pubKey, priKey string, signTyp ...cpt.Hash) *rsa

Types

type Ret

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

func KeyPair

func KeyPair(bits int) (pubPem, priPem *Ret, err error)

获取密钥对

func (*Ret) Base64

func (r *Ret) Base64() string

func (*Ret) Byte

func (r *Ret) Byte() []byte

func (*Ret) Error

func (r *Ret) Error() error

func (*Ret) Hex

func (r *Ret) Hex() string

func (*Ret) Result

func (r *Ret) Result() ([]byte, error)

func (*Ret) String

func (r *Ret) String() string

Jump to

Keyboard shortcuts

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