In this method you compress the file using 7 Zip in that file containing your text, then create a password to protect the Zip file. To access the text file inside the protected Zip file, you will have to enter the password. Here is how to do it:
Step 1 : Download 7-Zip to your computer and install it.
Download 7-Zip to your computer and install it here: Download 7 Zip
Step 2 : Right-click on the file you want to password protect, click 7-zip and select the Add to archive option . The 7-Zip Add to Archive dialog box will appear on the screen.
Step 3 : Here, under Archive , enter a name for your password protected Zip file and choose a location to save the file.
In the Archive format section , select Zip . In the Encryption section , select the default ZipCrypto or choose the popular encryption AES-256 .
Finally enter the password you want to use to protect the text file, then enter it again to confirm and click OK .
WinRAR also has similar features to 7-Zip, so you can use either of these two file compression and decompression software to set up a password to protect text files on Windows 10.
Step 1 : Download WinRAR to your computer and install it.
Download WinRAR to your computer and install it here: Download WinRAR
Step 2 : Right-click on the text file you want to protect, then click the Add to archive option to open the Archive name and parameters dialog box.
Step 3 : In the General tab , enter a name for the Zip file, select ZIP in the Archive format section , then click the Set Password button .
Step 4 : Enter the password you want to use, then re-enter it. Click OK .
You can password protect files on Windows 10 using software such as WinZip, Bandizip, PeaZip or use the built-in feature in Word, Excel to encrypt documents. If you do not want to install third-party software, try protecting Word, Excel files with a password to ensure data security.