Categorygithub.com/chouandy/filecryptor
modulepackage
1.5.0
Repository: https://github.com/chouandy/filecryptor.git
Documentation: pkg.go.dev

# README

File Cryptor

File Cryptor is a tool for encrypting, and decrypting file.

Install

go install github.com/chouandy/filecryptor

Usage

The password can be ENV["SECRETS_PASSWORD"] or ENV["SECRETS_PASSWORD_PS_NAME"] + ENV["SECRETS_PASSWORD_PS_REGION"]

  • Encrypt File
filecryptor enc --file {FILE} --password {PASSWORD}
# or
filecryptor enc --file {FILE} --ps-name {PS_NAME} --ps-region {PS_REGION}
  • Decrypt File
filecryptor dec --file {FILE} --password {password}
# or
filecryptor dec --file {FILE} --ps-name {PS_NAME} --ps-region {PS_REGION}
  • Random Hex String
filecryptor hex -n {N}

# Structs

DecryptCommand the command struct.
EncryptCommand the command struct.
HexCommand the command struct.