prvkeylib

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrvKey

func GetPrvKey(filePath string) (caesar.PrivateKey, error)

Get the private key from the specified file path. If the file path is an empty string, search and get the default private key. If a passphrase is set for the private key, have the passphrase entered from the terminal.

func ParsePrvKey

func ParsePrvKey(bytes []byte) (caesar.PrivateKey, error)

func ParsePrvKeyWithPass

func ParsePrvKeyWithPass(bytes []byte, passphrase string) (caesar.PrivateKey, error)

func ReadPrvKey

func ReadPrvKey(filePath string) ([]byte, error)

func SearchPrvKey

func SearchPrvKey() ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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