exec

package
v0.0.0-...-791ebe0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(plaintext string, privateKeyPath string) string

func DecryptRSA

func DecryptRSA(message string, privateKey *rsa.PrivateKey) (string, error)

func Encrypt

func Encrypt(plaintext string, publicKeyPath string) string

func EncryptFromBytes

func EncryptFromBytes(plaintext string, publicKey []byte) string

func EncryptRSA

func EncryptRSA(message string, publicKey *rsa.PublicKey) string

func MutateEnv

func MutateEnv(env []string, onlyEncrypted bool, privateKeyPath string) []string

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int, after int) []byte

func ReadPrivateKeyFromFile

func ReadPrivateKeyFromFile(keyPath string) *rsa.PrivateKey

func ReadPublicKeyFromBytes

func ReadPublicKeyFromBytes(pub []byte) *rsa.PublicKey

func ReadPublicKeyFromFile

func ReadPublicKeyFromFile(keyPath string) *rsa.PublicKey

func Run

func Run(command []string, detached bool, enc bool, privateKeyPath string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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