Forrest logo
back to the cipher tool

cipher:tldr:c6fd2

cipher: [e]ncrypt a file or directory (files added later to the directory are also encrypted as the directory is marked).
$ cipher /e:${path\to\file_or_directory}
try on your machine

The command "cipher /e:${path\to\file_or_directory}" is used to encrypt files or directories on a Windows system.

Here's a breakdown of the command:

  • "cipher" is a command-line tool in Windows that is used for managing file encryption. It provides the ability to encrypt or decrypt files and folders.

  • "/e" is an option or flag used with the cipher command to specify that encryption should be enabled. In this case, it indicates that the specified file or directory should be encrypted.

  • "${path\to\file_or_directory}" is a placeholder that represents the actual path to the file or directory that you want to encrypt. You need to replace it with the actual file or directory path on your system.

For example, if you want to encrypt a file called "data.txt" located in "C:\Documents", the command would be: "cipher /e:C:\Documents\data.txt"

When the command is executed, the specified file or directory will be encrypted using the Windows encryption system. This adds an additional layer of security to the file or directory, making it only accessible to authorized users who have the appropriate encryption key or certificate.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the cipher tool