The password is required to open an encrypted file. The process of unlocking called as Decryption. When you want to open the previously encrypted or protected file, that time you need to decrypt the file first with the help of previously set password.
Decryption process removes the protection, so that you can open and access the file.