Home / Security Commands / cipher

cipher

File Encryption & Secure Data Wiping Tool

What Does It Do?

The cipher command encrypts and decrypts files and folders on NTFS drives using Windows Encrypting File System (EFS), and securely wipes deleted data from free disk space.

Think of it like putting your sensitive files in a locked safe that only you can open. Even if someone steals your hard drive, they can't read your encrypted files. The wiping feature also ensures that deleted files can never be recovered - perfect for securing sensitive data before selling or disposing of a computer.

Advertisement

[ Insert Google AdSense Banner Code Here ]

When Should I Use It?

Protecting Sensitive Files

Encrypt confidential documents, financial records, or personal data.

Before Disposing Computer

Wipe free space to prevent file recovery before selling/donating.

Compliance Requirements

Meet data protection regulations like HIPAA, GDPR, or PCI-DSS.

Securing Backups

Encrypt backup folders to protect data during storage or transit.

Common Commands

cipher

Displays encryption status of current directory and files.

cipher /e C:\SecureFolder

Encrypts the specified folder (all new files will be encrypted too).

cipher /d C:\PublicFolder

Decrypts the specified folder (removes encryption).

cipher /w:C:\

Securely wipes free space on C: drive (3-pass overwrite - SLOW!).

cipher /k

Creates a new EFS encryption certificate and key.

cipher /x:backup

Backs up your EFS certificate to a .pfx file (IMPORTANT for recovery!).

cipher /y

Displays your current EFS certificate thumbprint.

cipher /c

Shows detailed encryption information for a file.

⚠️ CRITICAL WARNING

ALWAYS backup your EFS certificate! Use cipher /x:backup immediately after encrypting files.

If you lose your certificate or reinstall Windows, YOU WILL NEVER BE ABLE TO DECRYPT YOUR FILES AGAIN. They will be permanently lost!

Try It Yourself

Practice cipher commands in the interactive terminal below: