NDC & PKI
[Day 3] 8. PKI Lab (Encryption and Decryption)
D
DITISS AdminPrerequisite
- A Windows Machine (any edition except Windows Home).
- Familiarity with the Encrypting File System (EFS) by Microsoft.
Folder Structure Setup
Create the following folder and file tree structure:
demo/ ├── one/ │ ├── oneone/ │ │ └── oneone.txt │ └── one.txt └── two/ ├── twotwo/ │ └── twotwo.txt └── two.txt
Step 1: Check Encryption Status
-
Open the command prompt and navigate to the folder where the structure is created.
-
Run the following command:
bashcipher- Files marked with indicate they are unencrypted.
U
- Files marked with
Step 2: Encrypting Folders and Files Using cipher
cipher-
Encrypt a Specific Folder:
bashcipher /e one\oneone- Encrypts the folder.
oneone
- Encrypts the
-
Encrypt All Files in a Folder:
bashcipher /e one\oneone\*- Encrypts all files inside the folder.
oneone
- Encrypts all files inside the
-
Encrypt a Folder Recursively:
bashcipher /e /s:two- Encrypts the folder along with all its subfolders and files.
two - The flag ensures the encryption is applied recursively.
/s
- Encrypts the
Step 3: Encrypting Files Using the GUI
- Right-click on the folder you want to encrypt.
- Select Properties.
- Click on Advanced under the General tab.
- Check the box Encrypt contents to secure data and click Apply followed by OK.
This process secures the selected folders and files, ensuring only authorized users can access the encrypted data.
Read Next
8/26/2026
[Day 3] 9. Extra
### **1. ASCII** - **ASCII (American Standard Code for Information Interchange)** is a character encoding standard used for representing text in co...
8/26/2026
[Day 4] 1. Asymmetric Encryption Schemes
#### **Rule:** 1. Every participant has **two keys**: - **Public Key**: Shared with everyone. - **Private Key**: Kept secret and confiden...