.SEC

SEC File

PGP Secret Key Ring File
Ask a question
QUICK ANSWER

A SEC file is a PGP Secret Key Ring - it holds the private (secret) half of a PGP/OpenPGP key pair. You import it into PGP software such as Gpg4win/Kleopatra on Windows, GPG Suite on macOS, or GnuPG on Linux. Never share or upload a .sec file; it contains the key that controls your encrypted identity.

Developer: PGP Corporation / Symantec (Pretty Good Privacy); concept by Phil Zimmermann Category: Encoded Files Open standard MIME: application/pgp-keys
OPENS ON Windows macOS Linux
Related: .CRYPT · .SDOC · .AXX · .REM

On this page

19k+ extensions indexed
Last reviewed Aug 30, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the SEC file format?

A .sec file contains private keys stored as ASCII-armored text or binary data. Such keys are used by the PGP encryption solution to secure the confidentiality and integrity of email data sent over open, unsecured channels.

Contents of a .sec file

The private key is saved either in ASCII text or binary format - the user can choose the preferred form by passing an appropriate flag to the key creation command. ASCII-armored .sec files begin with the recognizable header -----BEGIN PGP PRIVATE KEY BLOCK-----; binary files use an OpenPGP packet stream as defined in RFC 4880 (updated by RFC 9580 in 2024). In both cases, the secret key material is passphrase-protected via a string-to-key (S2K) derivation. The public counterpart to a .sec keyring commonly uses the .PKR extension, while armored exports may carry the .ASC extension.

How PGP works

*Pretty Good Privacy* uses a public key system for encrypting email messages. The public key, as the name suggests, is and should be publicly available by design. The PGP algorithm is designed in such a way that in order to decrypt a message encrypted with a public key, the private key of the same key pair is required. A key pair is generated automatically based, among other things, on the user's email address and username. It is essential for this system to work properly that the private key be protected against unauthorized access - the .sec file must therefore be stored in a secure environment.

Real-world analogy

In simple terms, PGP can be compared to how the traditional mailbox system works. The key to your mailbox is like your private key: anyone can drop a letter through the slot, but since only you possess the key, no one else can retrieve it. This is the simplified analogy to how the mechanism that PGP is based on works, and it also illustrates why the public key should be public while the private key and access to the .sec file must be strictly restricted.

Uses of PGP

*Pretty Good Privacy* is used for securing email messages from unauthorized access. Encryption also guarantees that the message was not tampered with in transit. PGP additionally offers the option to sign messages to authenticate the sender. Modern GnuPG (gpg command) no longer uses .sec files by default, storing all key material in an internal keybox (pubring.kbx); the .sec extension is mainly encountered with classic PGP desktop software such as Symantec Encryption Desktop and legacy key exports, often re-imported alongside .PGP files.

Security & safety

RISK: HIGH

A .sec file contains PRIVATE key material - the most sensitive part of a PGP identity. Anyone who obtains the file AND its passphrase can decrypt your messages and impersonate you. Never email, upload, or share a .sec file; store it encrypted and back it up offline; use a strong passphrase. If a secret key is exposed, revoke it immediately and generate a new one. Be wary of "PGP key recovery" services that ask you to upload your secret key.

Format details

in a nutshell
FULL NAMEPGP Secret Key Ring Fileaka PGP Secret Keyring, Secret Key Ring
DEVELOPERPGP Corporation / Symantec (Pretty Good Privacy); concept by Phil Zimmermannsince PGP since 1991; OpenPGP standard RFC 4880 (2007), updated RFC 9580 (2024)
MIME TYPEapplication/pgp-keys
TYPEPGP/OpenPGP private key material (ASCII-armored text or binary keyring)
STANDARDOpen · royalty-free
This extension is also used by…
  • Adobe Flash projector security/sandbox config (.sec) - Settings/SOL-related security file in some Flash deployments; legacy and unrelated to PGP.
  • Steuererklaerung / certificate '.sec' files - Some tax and certificate tools store an encrypted user certificate as .sec; encrypted, not a keyring.
  • Generic 'secure/encrypted' .sec output - Various apps name their encrypted/secured output '.sec'; format depends entirely on the originating app.

Programs that open SEC files

Windows2 apps
Gpg4win (Kleopatra) Open-source Kleopatra > File > Import; enter the passphrase to add the secret key to your keyring.
Symantec Encryption Desktop (PGP) Paid Import the secret keyring into the PGP keys manager (now Broadcom; legacy symantec.com/pgp link is dead).
macOS2 apps
GPG Suite Free GPG Keychain > Import; provide the passphrase to add the secret key.
Symantec/PGP for Mac Paid Import into PGP Desktop (now Broadcom); the old symantec.com/pgp page is gone.
Linux1 app
GnuPG (gpg) Open-source Run 'gpg --import yourkey.sec' and enter the passphrase to import the secret key.

Technical details

deep spec
File encodingASCII-armored (Base64 + CRC24) or raw binary OpenPGP packet stream
ASCII armor header`-----BEGIN PGP PRIVATE KEY BLOCK-----` at byte offset 0
Container formatOpenPGP packet stream per RFC 4880 / RFC 9580
Secret key protectionPassphrase-derived encryption via string-to-key (S2K) function; file is useless to an attacker without the passphrase
MIME typeapplication/pgp-keys
Byte orderBig-endian (OpenPGP multi-precision integers are stored big-endian)
Packet key versionsv3 (legacy), v4 (standard), v6 (introduced in RFC 9580, 2024)
Integrity checkCRC24 checksum embedded in ASCII armor; MDC or checksum over secret material in binary form
Typical file size1 KB - 20 KB per key block
Supported algorithmsRSA, DSA, Elgamal (legacy); ECDSA, ECDH, Ed25519/EdDSA (modern OpenPGP)
Operating systemsWindows, macOS, Linux
Key material compressionSecret key material itself is uncompressed; ASCII armor adds no compression layer
Modern successorGnuPG stores secret keys in `private-keys-v1.d/` directory; `.sec` ring files are not created by default
Related extensions.asc, .gpg, .pgp, .pkr, .skr, .key
Key pair roleHolds the secret (private) half of a PGP key pair; must never be shared or transmitted without passphrase protection
ReleasedPGP since 1991; OpenPGP standard RFC 4880 (2007), updated RFC 9580 (2024)
Latest versionOpenPGP RFC 9580 (2024) for the underlying key format
Open standardYes · royalty-free
Specificationwww.rfc-editor.org

SEC conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with SEC files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about SEC files.

Frequently asked questions

What is a .SEC file?
It is a PGP secret (private) key ring - the confidential half of a PGP/OpenPGP key pair, protected by a passphrase. It is used to decrypt messages and sign as you.
How do I open or import a .sec file?
Import it into PGP software: Gpg4win/Kleopatra on Windows, GPG Suite on macOS, or 'gpg --import file.sec' on Linux. You will need the key's passphrase.
Is it safe to share my .sec file?
No - never. It holds your private key. Sharing it lets others read your encrypted mail and impersonate you. Only the public key (.pub/.asc) is meant to be shared.
I lost the passphrase to my .sec file - can I still use it?
Generally no. The secret key is encrypted with your passphrase; without it the key cannot be unlocked. There is no backdoor.
What's the difference between a .sec and a .pub file?
.sec is the private/secret keyring you keep confidential; .pub (or .asc public-key block) is the public keyring you give to others. You can derive the public key from the secret, never the reverse.
Does modern GnuPG still use .sec files?
Not by default - GnuPG stores keys in its keybox (pubring.kbx) and exports them as .asc/.gpg. .sec is the classic PGP secret-keyring name and is still importable.

References

1RFC 9580 - OpenPGPwww.rfc-editor.org
2GnuPG documentationgnupg.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.NOMEDIAAndroid No-Media Marker File
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database File

Related extensions

.CRYPTWhatsApp Encrypted Message Database Backup
.SDOCOracle IRM Sealed Word Document
.AXXAxCrypt Encrypted File
.REMBlackBerry Encrypted Media Card File
.DLCDownload Link Container
.PACKJava Pack200 Compressed JAR File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z