gpg-decrypt

Use GPG to decrypt a file using our best settings

https://github.com/sixarm/gpg-decrypt

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.6%) to scientific vocabulary

Keywords

encryption gpg script shell unix
Last synced: 4 months ago · JSON representation ·

Repository

Use GPG to decrypt a file using our best settings

Basic Info
  • Host: GitHub
  • Owner: SixArm
  • Language: Shell
  • Default Branch: main
  • Size: 61.5 KB
Statistics
  • Stars: 7
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
encryption gpg script shell unix
Created over 9 years ago · Last pushed 9 months ago
Metadata Files
Readme Code of conduct Citation Codeowners

README.md

gpg-decrypt:
decrypt a file using our best settings

GnuPG

Syntax:

gpg-decrypt <file>

Example:

$ gpg-decrypt example.txt.gpg > example.txt

Output is a new decrypted file:

example.txt

Settings

To get our settings, we use these gpg options:

  • --quiet: Try to be as quiet as possible.
  • --no-greeting: Suppress the initial copyright message but do not enter batch mode.

If you are on an older system, then you may want to add this:

  • --no-use-agent: Do not use a system agent such as Ubuntu's gnome-keyring process.

  • --pinentry-mode=loopback: Use the terminal for PIN encry.

More examples

To decrypt a file:

$ gpg-decrypt foo.gpg

To decrypt a file to a specific output file name:

$ gpg-decrypt foo.gpg --output goo

To decrypt a directory:

$ gpg-dncrypt foo.tar.gpg | tar -x

To decrypt a file then delete it:

$ gpg-decrypt foo.gpg && rm foo.gpg

To decrypt a directory then delete it:

$ gpg-dncrypt foo.tar.gpg | tar -x && rm foo.tar.gpg

Advice

We tend to use these naming conventions:

  • GPG file name extension .gpg.
  • tar file extension .tar.

We tend to skip compression:

  • We tend to use gpg without using compression.
  • We tend to use tar without using compression.

Command

The command is:

gpg \
--decrypt \
--quiet \
--no-greeting \
--pinentry-mode=loopback \
"$@"

Troubleshooting

TTY

If you get error messages like this:

gpg: Inappropriate ioctl for device
gpg: problem with the agent: Inappropriate ioctl for device
gpg: error creating passphrase: Operation cancelled
gpg: symmetric encryption of `[stdin]' failed: Operation cancelled

Then try this:

$ export GPG_TTY=$(tty)

Restart

If you get error message like this:

gpg: WARNING: server 'gpg-agent' is older than us (2.2.6 < 2.2.7)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
gpg: signal Interrupt caught ... exiting

Then try this:

$ gpgconf --kill all

See also

These commands are similar:

  • gpg-encrypt: use GPG to encrypt a file using our best settings.

  • gpg-decrypt: use GPG to decrypt a file using our best settings.

  • openssl-encrypt: use OpenSLL to encrypt a file using our best settings.

  • openssl-decrypt: use OpenSSL to decrypt a file using our best settings.

Tracking

  • Command: gpg-decrypt
  • Website: https://sixarm.com/gpg-decrypt
  • Cloning: https://github.com/sixarm/gpg-decrypt
  • Version: 4.0.0
  • Created: 2010-05-20
  • Updated: 2018-11-01
  • License: GPL
  • Contact: Joel Parker Henderson (joel@joelparkerhenderson.com)
  • Tracker: 15aff3e7c5a9635607f085773eee0238

Owner

  • Name: SixArm
  • Login: SixArm
  • Kind: organization
  • Email: sixarm@sixarm.com
  • Location: San Francisco

SixArm Software

Citation (CITATION.cff)

cff-version: 1.2.0
title: gpg-decrypt:<br>decrypt a file using our best settings
message: >-
  If you use this work and you want to cite it,
  then you can use the metadata from this file.
type: software
authors:
  - given-names: Joel Parker
    family-names: Henderson
    email: joel@joelparkerhenderson.com
    affiliation: joelparkerhenderson.com
    orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
  - type: url
    value: 'https://github.com/SixArm/gpg-decrypt/'
    description: gpg-decrypt:<br>decrypt a file using our best settings
repository-code: 'https://github.com/SixArm/gpg-decrypt/'
abstract: >-
  gpg-decrypt:<br>decrypt a file using our best settings
license: See license file

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 12
  • Total Committers: 1
  • Avg Commits per committer: 12.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Joel Parker Henderson j****l@j****m 12
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels