This guide takes you from installing TurboCrypt to restoring your first encrypted folder. Start with a few files you can experiment with.
On macOS 13 or later, Homebrew installs a signed binary for Apple Silicon and Intel Macs. Trust the tap first, then install:
brew trust jedisct1/turbocrypt
brew install jedisct1/turbocrypt/turbocryptFor a manual installation, download the archive for your system from the releases page and extract it.
Put turbocrypt in a directory on your PATH so you can run it from any folder. On Windows, the program is called turbocrypt.exe.
Then open a terminal and check that it runs:
turbocrypt versionIf you haven't added it to your PATH yet, you can run ./turbocrypt from the directory where you extracted it. In Windows PowerShell, use .\turbocrypt.exe.
To build from source, install the master version of Zig, then run:
git clone https://github.com/jedisct1/turbocrypt.git
cd turbocrypt
zig build -Doptimize=ReleaseFastThe program is written to zig-out/bin/. Add that directory to your PATH, or use the full path to the program in the examples below.
TurboCrypt uses a key file to encrypt and decrypt your files. Create one now:
turbocrypt keygen secret.keySave this key outside the folder you're about to encrypt, and keep a backup somewhere separate. If you lose every copy, you won't be able to recover your encrypted files.
Anyone with the key can read files encrypted with it. If you'd like a password on the key file as well, use turbocrypt keygen --password secret.key when creating it.
TurboCrypt will ask for that password whenever it needs to open the key.
To avoid typing the key's path each time, run:
turbocrypt config set-key secret.keyTurboCrypt saves a copy in your settings. Moving the original key file later won't affect that copy. If you used a password, the saved copy keeps its password protection.
You can also choose a key for an individual command with --key secret.key. The settings guide explains how this works when you have more than one key.
Choose a folder with a few files in it. In this example, it's called my-documents:
turbocrypt encrypt my-documents/ encrypted-documents/TurboCrypt creates the encrypted copies in encrypted-documents/ and leaves the originals alone. Keep the output folder outside the source folder.
To encrypt just one file, give the command two filenames instead:
turbocrypt encrypt document.pdf document.pdf.encBy default, folder and file names stay readable. You can encrypt those too.
Before relying on it, check that TurboCrypt can read and verify every encrypted file:
turbocrypt verify encrypted-documents/This checks the full contents without saving decrypted copies. If anything is damaged or the key is wrong, TurboCrypt reports an error.
Decrypt into a new folder so you can compare the result with your originals:
turbocrypt decrypt encrypted-documents/ restored-documents/Open a few files in restored-documents/ and make sure they're what you expect. For the single file from earlier, use:
turbocrypt decrypt document.pdf.enc restored-document.pdfNow you can encrypt a larger collection, work in a mounted folder, or keep private files in Git.