2019-10-04 21:36:01 +01:00
|
|
|
# cipher
|
|
|
|
|
2022-11-09 04:24:50 +00:00
|
|
|
> Display or alter the encryption of directories and files on NTFS volumes.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cipher>.
|
2019-10-04 21:36:01 +01:00
|
|
|
|
2022-11-09 04:24:50 +00:00
|
|
|
- Display information about a specific encrypted file or directory:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`cipher /c:{{path\to\file_or_directory}}`
|
2022-11-09 04:24:50 +00:00
|
|
|
|
|
|
|
- [e]ncrypt a file or directory (files added later to the directory are also encrypted as the directory is marked):
|
2019-10-04 21:36:01 +01:00
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`cipher /e:{{path\to\file_or_directory}}`
|
2019-10-04 21:36:01 +01:00
|
|
|
|
2022-11-09 04:24:50 +00:00
|
|
|
- [d]ecrypt a file or directory:
|
2019-10-04 21:36:01 +01:00
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`cipher /d:{{path\to\file_or_directory}}`
|
2019-10-04 21:36:01 +01:00
|
|
|
|
|
|
|
- Securely remove a file or directory:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`cipher /w:{{path\to\file_or_directory}}`
|