cli

package
v0.0.0-...-14cb2aa Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const PRIVATE_KEY_NAME = "priv.pem"
View Source
const PUBLIC_KEY_NAME = "pub.pem"

Variables

This section is empty.

Functions

func CreateKeys

func CreateKeys(ctx *urfavecli.Context) error

func Decrypt

func Decrypt(ctx *urfavecli.Context) error

func Encrypt

func Encrypt(ctx *urfavecli.Context) error

func LoadPrivateKey

func LoadPrivateKey(path string) (*rsa.PrivateKey, error)

func LoadPublicKey

func LoadPublicKey(path string) (*rsa.PublicKey, error)

Types

type Ransom

type Ransom struct {
	BitcoinAddress string
	BitcoinCount   float32
	PublicKey      string
}

Jump to

Keyboard shortcuts

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