• Login
Community
  • Login

Lock file

Scheduled Pinned Locked Moved Security
7 Posts 5 Posters 1.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ?
    A Former User
    last edited by Jun 5, 2025, 8:23 PM

    Hi Don,

    Please add the option for a password lock (similar to MS Word’s feature) for the text file.
    When opening the file again anywhere, the password will be required to view the contents.

    Regards.

    D 1 Reply Last reply Jun 6, 2025, 12:27 AM Reply Quote 0
    • P
      PeterJones
      last edited by Jun 5, 2025, 8:30 PM

      Hi @Fast,

      As our Feature Request FAQ explains, this is the Community of Notepad++ users. Don doesn’t track feature requests here.

      The NppCrypt plugin (you can install it via Plugins > Plugins Admin) might give you the feature you want – it will encrypt the file, and when you load it, you have to decrypt it before being able to understand/edit the file. (Since the feature exists in a plugin, Don is not likely to implement it natively, even if you were to put your request in the right place.)

      ? 1 Reply Last reply Jun 5, 2025, 8:35 PM Reply Quote 2
      • ?
        A Former User @PeterJones
        last edited by Jun 5, 2025, 8:35 PM

        @PeterJones Noted.
        I’ll try GitHub anyway.

        Also, I have tried the nppcrypt plugin, however it is unreliable, as anyone can open the file and erase the encrypted content.

        Regards,

        P M C 3 Replies Last reply Jun 5, 2025, 8:40 PM Reply Quote 0
        • P
          PeterJones @A Former User
          last edited by PeterJones Jun 5, 2025, 8:41 PM Jun 5, 2025, 8:40 PM

          @Fast said in Lock file:

          however it is unreliable, as anyone can open the file and erase the encrypted content.

          That’s not the same as “unreliable”. MS Word has the exact same problem for the exact same reason: anyone can delete a MS Word file and then create another empty document with the same name, even if it has a password lock, giving the same effect as “open the file and erase the encrypted content” that you complained about for N++ w/ NppCrypt, so that’s not an advantage of one solution over the other. And if Notepad++ implemented any such solution natively, it would have the same problem.

          I’ll try GitHub anyway.

          Feel free. Just don’t be surprised if it’s ignored or rejected.

          1 Reply Last reply Reply Quote 2
          • M
            Mark Olson @A Former User
            last edited by Mark Olson Jun 5, 2025, 8:47 PM Jun 5, 2025, 8:46 PM

            @Fast
            In addition to the objections raised by @PeterJones above, password locking text files seems practically useless, unless your password lock applies whenever any program tries to open that file, at which point it’s no longer a Notepad++ extension but just a general-use program.

            Microsoft Word and Excel can get some utility out of password locking a file because many Word and Excel documents are useless unless opened by those programs, but any file that people would open in Notepad++ could be edited in any other text editor.

            1 Reply Last reply Reply Quote 1
            • C
              Coises @A Former User
              last edited by Jun 5, 2025, 8:51 PM

              @Fast said in Lock file:

              anyone can open the file and erase the encrypted content.

              You have to manage that with Windows file permissions, not password protection.

              Encrypting a file doesn’t prevent it from being vandalized. It just prevents someone who doesn’t know the encryption key from reading it. Nothing Notepad++ (or any application) can do can protect the file from being overwritten by someone else who has access to your computer unless you protect it with the access control features of Windows.

              And since someone who has access to your computer could also damage or destroy it in other ways, you need a backup if your purpose is protection against loss of data.

              1 Reply Last reply Reply Quote 4
              • D
                donho @A Former User
                last edited by Jun 6, 2025, 12:27 AM

                Here’s my reply:
                https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16638#issuecomment-2947240947

                1 Reply Last reply Reply Quote 2
                7 out of 7
                • First post
                  7/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors