age Verified for current stable LTS

Age Command: Decrypt File With Private Key

An engineer would use this command when they need to securely decrypt a sensitive file that has been encrypted with their public key, utilizing their private key saved in a specified file. Exact CLI syntax to decrypt file with private key using Age.

When to use this: An engineer would use this command when they need to securely decrypt a sensitive file that has been encrypted with their public key, utilizing their private key saved in a specified file.

Command Syntax

age -d -i <path/to/private_key_file> -o <path/to/decrypted_file> <path/to/encrypted_file.age>

Command Breakdown

-d
Command Option
Tool-specific option used by this command invocation.
-i
Command Option
Tool-specific option used by this command invocation.
-o
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to decrypt file with private key using Age.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Age directory