/GPGDecryptor

Primary LanguageGoOtherNOASSERTION

GPGDecryptor

A program to decrypt GPG encrypted files, encrypted using GoCommon.

Binaries are published on GitHub releases. Additionally, pre-build .deb and .rpm packages are published on Fury.io

Installing

Installing .deb

  1. Download and import the Hibare repository key:
curl -fsSL https://apt.hibare.in/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/hibare-keyring.gpg
  1. Add repository source file
echo "deb [signed-by=/usr/share/keyrings/hibare-keyring.gpg] https://apt.hibare.in/ * *" | sudo tee /etc/apt/sources.list.d/hibare.list
  1. Update package list
sudo apt update
  1. Install GPGDecryptor
sudo apt install gpgdecryptor

Usage

Invoke gpgdecryptor cli command.

Help

gpgdecryptor -h
Program to decrypt GPG files

Usage:
  GPGDecryptor [flags]

Flags:
      --gpg-file string   Input GPG file
  -h, --help              help for GPGDecryptor
      --priv-key string   Private key file path
      --pub-key string    Public key file path
  -v, --version           version for GPGDecryptor

Decrypting file

gpgdecryptor --gpg-file <GPG file to decrypt> --priv-key <armored private key> --pub-key <armored public key>

Example:

gpgdecryptor --gpg-file db_exports.zip.gpg --priv-key priv.gpg --pub-key pub.key
Enter passphrase:
Decrypting file...