บางครั้งมีความจำเป็นต้องล็อกโฟลเดอร์หรือไฟล์ด้วยรหัสผ่านเพื่อป้องกันการเข้าถึงโดยไม่ได้รับอนุญาต บทความนี้มีวิธีการฟรีที่ปลอดภัยที่สุดในการปกป้องโฟลเดอร์หรือไฟล์ใน Windows OS เพื่อไม่ให้ทุกคนที่ไม่มีรหัสผ่านเข้าถึงได้
คำแนะนำเล็กน้อยก่อนล็อก/เข้ารหัสไฟล์ของคุณ:
1. ใช้รหัสผ่านที่คาดเดายากเสมอเมื่อล็อกไฟล์ของคุณและจดไว้ในที่ปลอดภัย
2. หากคุณใช้การเข้ารหัส EFS หรือ BitLocker ให้สำรองไฟล์ที่เข้ารหัสและคีย์การกู้คืนไว้ในอุปกรณ์แยกต่างหาก (เช่น ในไดรฟ์ USB ภายนอก) และเก็บอุปกรณ์นี้ไว้ในที่ปลอดภัย
3. สำหรับการป้องกันความเสียหาย มักจะสำรองข้อมูลไปยังอุปกรณ์แยกต่างหาก ไฟล์ที่ถูกล็อก (เข้ารหัส) ในรูปแบบปลดล็อค (ไม่ได้เข้ารหัส)
วิธีการป้องกันรหัสผ่านของไฟล์หรือโฟลเดอร์ใน Windows
วิธีที่ 1. ล็อกเอกสารสำนักงาน สมุดงาน การนำเสนอ ฯลฯ
วิธีที่ 2. ล็อกและเข้ารหัสโฟลเดอร์หรือไฟล์ด้วย 7-Zip
วิธีที่ 3 เข้ารหัสไฟล์และโฟลเดอร์โดยใช้การเข้ารหัส EFS
วิธีที่ 4 เข้ารหัสโฟลเดอร์และไฟล์โดยใช้ Bit Locker
วิธีที่ 5. เข้ารหัสไฟล์และโฟลเดอร์โดยใช้เวราคริปต์
วิธีที่ 1. วิธีล็อกเอกสาร Word, สมุดงาน Excel, การนำเสนอ PowerPoint ฯลฯ
ทุกแอปพลิเคชันของ Microsoft Office มีคุณสมบัติในการป้องกันรหัสผ่านสำหรับเอกสารที่เปิดอยู่ในปัจจุบัน ตัวอย่างเช่น หากคุณต้องการตั้งรหัสผ่านในไฟล์ Word, Excel หรือ PowerPoint ให้ไปที่:
- ไฟล์ -> ข้อมูล -> ปกป้องเอกสาร -> เข้ารหัสด้วยรหัสผ่าน .
วิธีที่ 2. วิธีล็อกโฟลเดอร์หรือไฟล์โดยใช้ 7-zip
วิธีถัดไปในการป้องกันไฟล์หรือโฟลเดอร์ด้วยรหัสผ่านคือการใช้โปรแกรมเก็บไฟล์ 7-Zip ซึ่งรองรับการเข้ารหัสข้อมูล
ข้อดี: ให้การเข้ารหัสที่แข็งแกร่งและฟรี!
ข้อเสีย: ข้อเสียของวิธีการล็อกแบบ 7-zip คือคุณต้องดึงข้อมูลที่เก็บถาวรที่มีการป้องกันไว้เสมอเพื่อเข้าถึงและทำงานกับเนื้อหาได้
เพื่อป้องกัน (ล็อก) ไฟล์หรือโฟลเดอร์ด้วยรหัสผ่านที่มี 7-zip:
1. ดาวน์โหลดและติดตั้ง 7-zip
2. คลิกขวาที่ไฟล์ (หรือโฟลเดอร์) ที่คุณต้องการบีบอัดและป้องกันด้วยรหัสผ่าน แล้วเลือก 7-Zip -> เพิ่มไปยังที่เก็บถาวร .
3. ที่หน้าต่าง 'Add to archive' ให้พิมพ์รหัสผ่านของคุณแล้วคลิก ตกลง .
วิธีที่ 3 วิธีล็อกไฟล์และโฟลเดอร์โดยใช้การเข้ารหัส EFS
EFS เป็นเครื่องมือเข้ารหัสในตัว ซึ่งสามารถปกป้องไฟล์และโฟลเดอร์แต่ละไฟล์ในไดรฟ์ NTFS โดยการเข้ารหัส
ข้อดี: ไฟล์ที่เข้ารหัส EFS สามารถเปิดได้เฉพาะบนคอมพิวเตอร์เครื่องเดียวกัน (ที่สร้างไว้) หรือในคอมพิวเตอร์เครื่องอื่นก็ต่อเมื่อคุณติดตั้งคีย์ถอดรหัส (ใบรับรอง)
ข้อเสีย:
1. การเข้ารหัส EFS ใช้ได้กับ Windows 10, 8, 8.1 Pro หรือ Windows 10 Enterprise และ Windows 7 Ultimate เท่านั้น
2. หากคุณส่งอีเมลหรือคัดลอกไฟล์ที่เข้ารหัสไปยังคอมพิวเตอร์เครื่องอื่นในเครือข่าย การเข้ารหัสจะถูกลบออก (สูญหาย)
ในการเข้ารหัสไฟล์หรือโฟลเดอร์ด้วยการเข้ารหัส EFS
1. คลิกขวาที่ไฟล์หรือโฟลเดอร์ที่คุณต้องการเข้ารหัสและเลือก คุณสมบัติ .
2. ที่แท็บทั่วไป คลิกขั้นสูง .
3. ตรวจสอบ เข้ารหัสไฟล์เพื่อรักษาความปลอดภัยข้อมูล กล่องแล้วคลิก ตกลง สองครั้งเพื่อใช้การเปลี่ยนแปลง
4. จากนั้น เมื่อได้รับแจ้งจาก Windows ให้คลิกเพื่อ สำรองข้อมูลคีย์การเข้ารหัส . *
* หมายเหตุ:หากคุณไม่เห็นข้อความ "สำรองคีย์การเข้ารหัสไฟล์ของคุณ" และคุณเข้ารหัสไฟล์/โฟลเดอร์ของคุณเป็นครั้งแรก ให้ปฏิบัติตามวิธีใดวิธีหนึ่งต่อไปนี้ สอง (2) วิธีในการสำรองข้อมูลคีย์การเข้ารหัส:
- วิธีการ-A. รีสตาร์ทคอมพิวเตอร์และหลังจากบูทเป็น Windows แล้ว ให้คลิกที่ไอคอนการแจ้งเตือน "Encrypting Files System – Backup the Encryption Key"
- วิธี ข. ไปที่ Windows แผงควบคุม และเปิดตัวเลือกอินเทอร์เน็ต .
ก. ที่ เนื้อหา คลิกแท็บ ใบรับรอง
ข. ที่ ส่วนตัว แท็บ คลิก ส่งออก และทำตามขั้นตอนที่ 6 ต่อไปเพื่อสำรองข้อมูลคีย์การกู้คืน
5. คลิกสำรองข้อมูลทันที (แนะนำ)
6. ที่ Welcome to Certificate Export Wizard คลิก ถัดไป .
7. ปล่อยให้รูปแบบไฟล์ส่งออกเริ่มต้นและคลิกถัดไป .
8. ในหน้าจอถัดไป ตรวจสอบ รหัสผ่าน กล่องกาเครื่องหมาย พิมพ์รหัสผ่านที่คาดเดายาก และเลือก AES256-SHA256 การเข้ารหัส เมื่อเสร็จแล้ว คลิกถัดไป .
9. คลิก เรียกดู พิมพ์ชื่อไฟล์สำหรับไฟล์ใบรับรอง (คีย์ถอดรหัส) จากนั้นคลิกบันทึก เพื่อบันทึกใบรับรอง (คีย์ถอดรหัส) บนพีซีของคุณ* เมื่อเสร็จแล้ว ให้คลิก ถัดไป .
* ข้อควรระวัง: อย่าบันทึกใบรับรองในโฟลเดอร์ที่คุณเข้ารหัส
10. สุดท้ายคลิก เสร็จสิ้น และ ตกลง เมื่อการส่งออกเสร็จสิ้น
11. คุณทำเสร็จแล้ว หลังจากใช้การเข้ารหัสแล้ว ไฟล์/โฟลเดอร์ที่เข้ารหัสทั้งหมด จะปรากฏขึ้นพร้อมไอคอนแม่กุญแจ *
* หมายเหตุ:ใน Windows รุ่นก่อนหน้า (เช่น ใน Windows 7) ไฟล์/โฟลเดอร์ที่เข้ารหัส จะปรากฏด้วยตัวอักษรสีเขียวบนชื่อไฟล์
เคล็ดลับเมื่อใช้วิธีการเข้ารหัส EFS:
1. ระบุรหัสผ่านเข้าสู่ระบบที่แข็งแกร่งบน Windows (ที่พีซีที่ใช้การเข้ารหัส)
2. สำรองคีย์การกู้คืน EFS ที่ส่งออก (ใบรับรอง .pfx) ไว้ในตำแหน่งที่ปลอดภัยอื่น (ไดรฟ์) เสมอ
3. อย่าส่งอีเมลหรือคัดลอกไฟล์ที่เข้ารหัสบนเครือข่าย เพราะการเข้ารหัสจะถูกลบออก
4. หากคุณต้องการเปิด (ถอดรหัส) ไฟล์ที่เข้ารหัส EFS บนคอมพิวเตอร์เครื่องอื่น คุณต้องติดตั้งคีย์ใบรับรอง (คีย์ถอดรหัส .pfx) ก่อน โดยใช้รหัสผ่านที่คุณระบุเมื่อคุณส่งออกคีย์การถอดรหัสใบรับรอง EFS ในการทำเช่นนั้น ให้ดับเบิลคีย์บนใบรับรองที่ส่งออกแล้วทำตามขั้นตอนที่ 'Import Certificate Wizard'
5. สุดท้าย หากคุณต้องการลบการเข้ารหัส EFS บนคอมพิวเตอร์ที่เปิดใช้งานการเข้ารหัส EFS (หรือบนคอมพิวเตอร์เครื่องอื่นหลังจากติดตั้งคีย์การถอดรหัสใบรับรอง) ให้ทำดังนี้:
ก. คลิกขวาที่โฟลเดอร์/ไฟล์ที่เข้ารหัสแล้วเลือก การเป็นเจ้าของไฟล์ -> ส่วนตัว .
b. จากนั้นดำเนินการลบใบรับรองที่ติดตั้งโดยสมบูรณ์ดังนี้:
1. ไปที่ Windows แผงควบคุม และเปิดตัวเลือกอินเทอร์เน็ต .
2. ที่ เนื้อหา คลิกแท็บ ใบรับรอง
3. ที่ ส่วนตัว ให้ไฮไลต์ใบรับรองที่ติดตั้งแล้วคลิก ลบ .
วิธีที่ 4 วิธีเข้ารหัสโฟลเดอร์และไฟล์โดยใช้ Bit Locker
วิธีการที่ปลอดภัยมากในการปกป้องข้อมูลที่ละเอียดอ่อนของคุณด้วยรหัสผ่านคือการใช้โปรแกรมเข้ารหัส BitLocker ซึ่งปัจจุบันฝังอยู่ใน Windows รุ่น Professional และ Enterprise เท่านั้น (Windows 10, 8, 8.1 Pro หรือ Windows 10 Enterprise &Windows 7 Ultimate)
ข้อดี: ให้การปกป้องที่แข็งแกร่ง
ข้อเสีย: ข้อเสียของ BitLocker คือไม่มีในเวอร์ชัน Windows Home
- บทความที่เกี่ยวข้อง: วิธีเข้ารหัสพีซีทั้งหมดของคุณด้วย BitLocker ใน Windows 10 Pro &Enterprise
ในการป้องกันรหัสผ่านโฟลเดอร์ด้วย BitLocker:
Step 1. Create a Virtual Hard Drive (VHD).
In order to use BitLocker protection, you must create a VHD (aka "file container"), and then to store the files that you want to encrypt on it. ในการทำเช่นนั้น:
1. กดปุ่ม Windows . พร้อมกัน + ร แป้นเพื่อเปิดกล่องคำสั่งเรียกใช้
2. Type diskmgmt.msc แล้วกด Enter .
3. In Disk Management, go to Action -> Create VHD
4. คลิก เรียกดู and then, at the next screen, type a name for the BitLocker Volume (e.g. "Virtual Drive") and click Save .
5. Then specify a size for the virtual disk according your needs (e.g. 300MB) and optionally check the Dynamically expanding in order to to automatically increase the defined size e.g. 300MB) if needed.
6. เมื่อเสร็จแล้ว คลิกตกลง .
7. When the Virtual Disk creation is completed, you should see a new disk (e.g. "Disk 1") with the label "Not Initialized ".
8. Right click on the new disk and select Initialize Disk .
9. At "Initialize Disk" window, leave the default setting (MBR) and click OK .
10. When the initialization is completed, right click on the unallocated space and create a New Simple Volume .
11. คลิกถัดไป at all the screens to create a new volume and to format the drive.
12. When the format is completed, you will see a new VHD volume (e.g. with name "New Volume (D:)" in disk manager (and in Windows Explorer).
Step 2. Protect the VHD Volume with BitLocker.
1. ไปที่แผงควบคุมของ Windows (ไอคอนขนาดเล็ก) และเปิด การเข้ารหัสด้วย BitLocker Drive .
2. จากนั้นคลิก เปิด BitLocker to enable the encryption on the new volume (drive):
3. Check Use a password to unlock the drive , then type a strong password and then click Next.
4. At the next screen select where do you want to save the recovery key, in case you have problems unblocking the drive and then click Next . ในขั้นตอนนี้ คุณมีตัวเลือกดังต่อไปนี้:
- บันทึกลงในบัญชี Microsoft ของคุณ :By selecting this option you 'll able to get your recovery key after signing with your Microsoft Account at https://onedrive.live.com/recoverykey.
- บันทึกลงในแฟลชไดรฟ์ USB หากคุณเลือกตัวเลือกนี้ ให้เสียบไดรฟ์ USB เปล่าบนพีซี และทำตามคำแนะนำเพื่อสร้างไดรฟ์กู้คืน BitLocker หากคุณมีปัญหาในการปลดล็อกคอมพิวเตอร์ (ในอนาคต) ให้เสียบแฟลชไดรฟ์ USB เข้ากับพีซีที่ล็อคไว้และทำตามคำแนะนำเพื่อปลดล็อก
- บันทึกเป็นไฟล์: If you want to save the recovery key to a file, then save the file on the computer (not safe) or plug a USB drive on the PC and save the recovery key on the USB. If you can't unlock your PC in the future, then read the saved text file to find out the recovery key to unlock the virtual drive.
- พิมพ์คีย์การกู้คืน และบันทึกเอกสารที่พิมพ์ไว้ในที่ปลอดภัย
5. At the next two (2) screens, click Next .
6. Finally click Start encrypting .
7. When the encryption is completed, open Windows Explorer and transfer the files that you want to protect in the new drive (VHD).
8. When you finish your job, right click on the new drive and choose Eject .
9. That's it!
TIPS when using the BitLocker encryption:
1. To change the BitLocker password or to remove (turn off) the BitLocker protection, navigate to Control Panel -> BitLocker Drive Encryption.
2. Always backup the BitLocker recovery key to another safe location (drive).
3. To access the contents on the BitLocker protected Virtual Disk (VHD), use one of the following methods:
- Method 1. Double click at the Virtual Disk's file (VHD) and when asked, type your password to unlock the drive.
- Method 2. Open Disk Management and go to Action -> Attach VHD and then type the BitLocker password.
- Click Browse , select the Virtual Drive (VHD file) and click OK .
- Open Windows Explorer and double click at the new drive.
- Type your password to unlock the drive and to explore its contents.
Method 5. How to Encrypt Folders and Files by using VeraCrypt.
The last secure method to lock folders and files, is by using the VeraCrypt the free and powerful open source encryption software.
Pros:
1. Provides Strong Protection
2. VeraCrypt can be used in all Windows versions (Home &Pro) and in Mac OSX and Linux.
3. It's Free!
Cons:–
- บทความที่เกี่ยวข้อง: How to Encrypt your entire PC with VeraCrypt in Windows (All Versions)
To Encrypt your Files with VeraCrypt:
Step 1. Create a VeraCrypt Password Protected Volume:
To start encrypting your files with VeraCrypt, you must create a VeraCrypt volume (also known as "VeraCrypt File Container"), which be actually an encrypted virtual disk (VHD) with your encrypted files.
1. ดาวน์โหลดและติดตั้งเวราคริปต์บนพีซีของคุณ *
* หมายเหตุ:ติดตั้ง VeraCrypt ด้วยสิทธิ์ของผู้ดูแลระบบในพื้นที่เสมอ
2. When the installation is completed, launch VeraCrypt and go to Volumes -> Create New Volume
3. At the first screen leave the default option (Create an encrypted file container) and click Next .
4. กด ถัดไป to create a Standard VeraCrypt volume.
5. At the Volume Location window, click Select File and then, at the next screen, type a name for the VeraCrypt Volume (e.g. "Private") and click Save . When done click Next เพื่อดำเนินการต่อ
6. Leave the default Encryption options (AES / SHA-512) and click Next .
7. At Volume Size , type a size for he new volume according your needs (e.g. 300MB) and click Next .
8. ตอนนี้พิมพ์รหัสผ่านที่คาดเดายาก* แล้วคลิกถัดไป เพื่อดำเนินการต่อ
* Note:A strong password must consisting of 20 or more characters and it must contain upper and lower case letters, numbers, special symbols, etc..
TIP: Check the "Display Password" checkbox to verify what you typing.
9. At Volume Format options, select NTFS and optional check the Dynamic checkbox.* Then move your mouse as randomly as possible within the window to increase the cryptographic strength. When the 'Randomness' bar becomes green press Format .
* Note:If you choose the Dynamic option, the volume size will be increased dynamically if it exceeds the defined limit (e.g. of 300MB).
10. When the operation is completed click OK and then click Exit.
Step 2. Transfer the Files that you want to protect inside the VeraCrypt volume.
The final step, is to put the folders/files that your want to protect inside the VeraCrypt encrypted volume.
1. Launch VeraCrypt and mount the encrypted volume. ในการทำเช่นนั้น:
1. Select an available Drive letter.
2. Click Select file and choose the encrypted VeraCrypt volume (e.g. "Private").
3. Click Mount .
4. Type the password and click OK.
2. When the mounting is done, open Windows Explorer and you will see a new local drive (with a size according to the one you had set, when you created the VeraCrypt volume).
3. Now, transfer all the folders and files that you want to protect to the new drive.
4. When done, close Windows Explorer and from VeraCrypt menu select Dismount .
5. เสร็จแล้ว! Just follow the same procedure to work with your protected files in the future.
แค่นั้นแหละ! แจ้งให้เราทราบหากคู่มือนี้ช่วยคุณโดยแสดงความคิดเห็นเกี่ยวกับประสบการณ์ของคุณ โปรดกดไลค์และแชร์คู่มือนี้เพื่อช่วยเหลือผู้อื่น