rsa

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Private

type Private interface {

	// Decrypt 解密
	Decrypt(decryptStr string) (string, error)
	// contains filtered or unexported methods
}

func NewPrivate

func NewPrivate(privateKey string) Private

func NewPrivateWithUrl

func NewPrivateWithUrl(privateKey string, url bool) Private

type Public

type Public interface {

	// Encrypt 加密
	Encrypt(encryptStr string) (string, error)
	// contains filtered or unexported methods
}

func NewPublic

func NewPublic(publicKey string) Public

func NewPublicWithUrl

func NewPublicWithUrl(publicKey string, url bool) Public

Jump to

Keyboard shortcuts

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