Documentation ¶
Index ¶
- func Decrypt(plaintext string, privateKeyPath string) string
- func DecryptRSA(message string, privateKey *rsa.PrivateKey) (string, error)
- func Encrypt(plaintext string, publicKeyPath string) string
- func EncryptFromBytes(plaintext string, publicKey []byte) string
- func EncryptRSA(message string, publicKey *rsa.PublicKey) string
- func MutateEnv(env []string, onlyEncrypted bool, privateKeyPath string) []string
- func PKCS5Padding(ciphertext []byte, blockSize int, after int) []byte
- func ReadPrivateKeyFromFile(keyPath string) *rsa.PrivateKey
- func ReadPublicKeyFromBytes(pub []byte) *rsa.PublicKey
- func ReadPublicKeyFromFile(keyPath string) *rsa.PublicKey
- func Run(command []string, detached bool, enc bool, privateKeyPath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptRSA ¶
func DecryptRSA(message string, privateKey *rsa.PrivateKey) (string, error)
func EncryptFromBytes ¶
func ReadPrivateKeyFromFile ¶
func ReadPrivateKeyFromFile(keyPath string) *rsa.PrivateKey
func ReadPublicKeyFromBytes ¶
func ReadPublicKeyFromFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.