Dude, a password required to decrypt would be easy wouldn't it?
Use:
Code:
Private Sub cmdEncrypt_Click()
Dim strPass As String
strPass = InputBox("Please Enter a Password.", "Password Required")
Call EncryptFile(txtPath.Text)
MsgBox "Successfully Encrypted.", vbExclamation + vbYesOnly, "Successful Encrypt!"
End Sub
Private Sub cmdDecrypt_Click()
Dim strPass2 As String
strPass2 = InputBox("Please Enter Your Password.", "Enter Your Password")
If strPass2 = strPass Then
Call DecryptFile(txtPath.Text)
MsgBox "Successfully Decrypted.", vbInformation + vbOKOnly, "Successful Decrypt!"
End Sub