crypto

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encryptedBase64 string, key []byte) (string, error)

func DecryptFile

func DecryptFile(sourceFilePath string, targetFilePath string, key []byte) error

Read from a source text file, decrypt, and write to a target file

func DecryptFromFile

func DecryptFromFile(inputFilePath string, key []byte) (string, error)

Decrypt data read from a text file

func DecryptStdin

func DecryptStdin(key []byte) (string, error)

Decrypt data from the stdin pipe

func DecryptToFile

func DecryptToFile(input string, outputFilePath string, key []byte, append bool) error

Decrypt an input string to a file, with an option to append or overwrite

func Encrypt

func Encrypt(input string, key []byte) (string, error)

func EncryptFile

func EncryptFile(sourceFilePath string, targetFilePath string, key []byte) error

Read from a source text file, encrypt, and write to a target file

func EncryptFromFile

func EncryptFromFile(inputFilePath string, key []byte) (string, error)

Encrypt data read from a text file

func EncryptStdin

func EncryptStdin(key []byte) (string, error)

Encrypt data from the stdin pipe

func EncryptToFile

func EncryptToFile(input string, outputFilePath string, key []byte, append bool) error

Encrypt an input string to a file, with an option to append or overwrite

Types

This section is empty.

Jump to

Keyboard shortcuts

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