HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cipher — Display or alter the encryption of directories and files on NTFS volumes. More information: <https:/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommanddirectoriescliencryptioncipheralterdisplay
windows

Problem

How to use the cipher command: Display or alter the encryption of directories and files on NTFS volumes. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cipher>.

Solution

cipher — Display or alter the encryption of directories and files on NTFS volumes. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cipher>.

Display information about a specific encrypted file or directory:
cipher /c:{{path\to\file_or_directory}}


[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}}


[d]ecrypt a file or directory:
cipher /d:{{path\to\file_or_directory}}


Securely remove a file or directory:
cipher /w:{{path\to\file_or_directory}}

Code Snippets

Display information about a specific encrypted file or directory

cipher /c:{{path\to\file_or_directory}}

[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}}

[d]ecrypt a file or directory

cipher /d:{{path\to\file_or_directory}}

Securely remove a file or directory

cipher /w:{{path\to\file_or_directory}}

Context

tldr-pages: windows/cipher

Revisions (0)

No revisions yet.