age Verified for current stable LTS

Age Command: Encrypt File With Public Keys Literals

An engineer would use this command to securely encrypt a sensitive configuration file using a specified public key before sharing it with a collaborator, ensuring that only the intended recipient can decrypt and access the file's contents. Exact CLI syntax to encrypt file with public keys literals using Age.

When to use this: An engineer would use this command to securely encrypt a sensitive configuration file using a specified public key before sharing it with a collaborator, ensuring that only the intended recipient can decrypt and access the file's contents.

Command Syntax

age {-r|--recipient} public_key {-o|--output} path/to/encrypted_file.age path/to/unencrypted_file

Command Breakdown

age is the base executable for this command.

FAQ

Purpose: Exact syntax to encrypt file with public keys literals 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