Is there a program with which I can create new text file, set password for it and every time I want to open it, I need to write correct password or otherwise file will not open and remain encrypted.
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It only takes a minute to sign up.Sign up to join this community
You can try Notepad3 from Rizonesoft: https://www.rizonesoft.com/downloads/notepad3/
It is a lightweight and fast editor for coding.