GNU Privacy Guard Encrypted File
|Free Software Foundation
3.9 | 38 Votes
What is a GPG file?
A GPG file is a file that has been encrypted by GNU Privacy Guard, also known as GnuPG or gpg. It contains a document, image, video, or other file a user encrypted. To decrypt a GPG file, you must have access to the appropriate GnuPG cryptographic key.
GNU Privacy Guard is an encryption program that uses the OpenPGP encryption standard defined by RFC4880. It allows you to encrypt and digitally sign files and email communications, using private cryptographic keys, and decrypt those files and communications using accompanying public keys.
Typically, files encrypted using GnuPG are saved with the .gpg extension. This denotes they were encrypted and can be decrypted with GnuPG. However, to decrypt a GPG file, you must possess the necessary GnuPG key (typically another user's public key).
NOTE: On occasion, some GPG files may instead contain a GnuPG key.
How to open a GPG file
You can use GNU Privacy Guard to decrypt a GPG file, provided you have access to the necessary security key. After importing the necessary key, use the following command to decrypt your GPG file:
gpg -d YourFilename.gpg