FG
💻 Software

Simple built-in way to encrypt and decrypt a file on a Mac via command-line?

Fresh7 days ago
Mar 15, 202689680 views
Confidence Score1%
1%

Problem

Are there any built in command-line tools that I can encrypt and decrypt a text file (and provide it some sort of password).

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Simple built-in way to encrypt and decrypt a file on a Mac via command-line?

Low Risk

comes pre-installed on Mac OS X. You can use the following commands: (copied from OpenSSL Command-Line HOWTO: How do I simply encrypt a file?) You will be prompted for a password. You can also specify a password on the command-line using or These commands use 256-bit AES ecryption with Cipher Block Chaining (CBC), which is about as secure as it gets right now.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment