transmission

package
v0.0.0-...-58a2b35 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btos

func Btos(bs []byte) string

byte to string

func CreatePrkPuk

func CreatePrkPuk() (prikStr, pubkStr string)

生成公私钥

func Decrypt

func Decrypt(key, rs []byte) ([]byte, error)

解密

func Encrypt

func Encrypt(key, bs []byte) ([]byte, error)

加密

func GetKey

func GetKey(prika, pubkb string) (string, error)

获取密钥

func InitDh

func InitDh() error

初始化dhkey

func Stob

func Stob(bs string) []byte

string to byte

Types

type PPJson

type PPJson struct {
	Pubk string
	Prik string
}
var (
	PPJSON PPJson
)

func Parse

func Parse(jsonstr string) PPJson

解析ppjson

Jump to

Keyboard shortcuts

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