Giter VIP home page Giter VIP logo

crypto-notepad's Introduction

SWUbanner

Crypto Notepad Tweet

downloads license release documentation

Notepad-like simple text editor for Windows, where files are saved and loaded encrypted with AES algorithms.

screenshot

Features

  • All the features of the default Windows Notepad
  • Associate own file type with application
  • Integrate with windows context menu
  • Сustomizable encryption options
  • Built-in password generator
  • Detecting links in editor
  • Drag and Drop support
  • Сustomizable interface
  • Pasteboard function
  • Autoclear clipboard
  • Autolock editor
  • Rich settings
  • Portable

Installation

Via chocolatey:

choco install crypto-notepad

Manual instalition:

  • Download latest release.
  • Unzip Crypto.Notepad.zip archive to any directory
  • Run Crypto Notepad.exe

System requirements

  • Windows 7 SP1 and higher
  • .NET Framework 4.6.1 and higher

Build

App was created in Visual Studio Community, you can run the *.sln file and simply build a project

Contributing

Want to help make the project better? Check out CONTRIBUTING.md to get involved. Welcome! :octocat:

crypto-notepad's People

Contributors

h5p9sl avatar sigmanor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crypto-notepad's Issues

[Feature request] GPG support?

I don't know if this is high priority or out of scope but I generally save my encrypted notepad material using GPG so I can save and open encrypted text on multiple devices, since that format has fairly broad support.

[Feature request] More integration with windows context menu

Add optional integration with windows context menu (e.g. in 7zip), when right clicking on files. It will be look like that:

_ _2018-12-10_03-20-17

Menu explanation

Encrypt - encrypt selected file;
Decrypt - decrypt selected file;
Encrypt and replace - encrypt selected file and replace it. This will be work like this:

  • you right-click on some new.txt file;
  • click this menu item;
  • typing password for encryption;
  • new.txt file will be deleted;
  • instead of new.txt file will be a new, encrypted file, in the same place - new.cnp;

autoupdate last version

Describe the bug
hello
after launching the last update does not open the file saying that the password is incorrect, the password if it is the correct insurance. It has been right after the update.

To Reproduce
Steps to reproduce the behavior:
not posible open the notepad file

Expected behavior
hello
after launching the last update does not open the file saying that the password is incorrect, the password if it is the correct insurance. It has been right after the update

Screenshots
If applicable, add screenshots to help explain your problem.

Software version (please complete the following information):

  • OS versionWindows 7
  • App version [e.g. v1.4.4]

Additional context
Add any other context about the problem here.

Cannot Build Solution [BUG]

Downloaded Crypto-Notepad version 1.6.7.0 on 8/19/20.
Downloaded Visual Studio Community 2019, downloaded Microsoft .NET Framework 4.6.1 Targeting Pack, Targeting Pack (ENU), and SDK.
Started "Build Solution", and received the following errors:

1>C:\Users\Paul\Downloads\Crypto-Notepad-master\Crypto Notepad\Forms\PasswordGeneratorFrom.cs(52,72,52,86): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

1>C:\Users\Paul\Downloads\Crypto-Notepad-master\Crypto Notepad\Forms\PasswordGeneratorFrom.cs(56,23,61,71): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

Don't know what to do at this point.

Expected behavior
A successful Build.

Software version (please complete the following information):

  • OS version = Windows 10

Removing the "Try to decrypt %filename% file?" Message

Crypto-Notepad is such a great tool, but this one thing kind of drives me crazy.

I'm using version 1.6.7 on Windows 10

So, when opening a file by way of drag and drop, a Windows association or File -> Open, the message The "Try to decrypt %filename% file?" pops up requiring an answer. This requires an (often) needless click when I think this process could be done better.

How? Perhaps opening files with the TXT extension as unencrypted by default (and provide an option in the interface to decrypt), the inverse goes for files using CNP - assuming these are encrypted.

It's possible it could be a program-wide option (Always assume TXT files are unencrypted), something like that.

To be able to open and close simple TXT files unimpeded (most often use case I'd imagine) and then offering the encrypted options when signalled, the program is far easier to use.

[BUG] Wrong behavior after try to close app

Describe the bug
App does not closing after some actions.

To Reproduce

  1. Open app.
  2. Type some text.
  3. Click [X] to close app
  4. Click [Chancel] button in message box.
  5. Delete all text.
  6. Click [X] again.

Expected behavior
App must be closed.

Software version:

  • OS version [Windows 10]
  • App version [v1.4.0]

[BUG] Critical bug after file saving

Sometimes after saving the file, there is no possibility to open it anymore, the password is incorrect.
This bug only appears in 1.1.3+ versions.

@h5p9sl can you help me to fix this? Because on version 1.1.2 I can't reproduce this bug, so it's appeared after the last updates, and I have not changed anything in the encryption code in recent updates. So I need your help.

To catch this bug I wrote a small code. This code is try to encrypt the opened file, and then decrypt it.

Loop that saving the file for a 10 times

            int i = 1;
            while (i != 10)
            {
                i++;
                Text = i.ToString();
                saveToolStripMenuItem1_Click_1(sender, e);
                CheckFileSavedCorrectly();
            }

This code is for open the file after saving

private void CheckFileSavedCorrectly()
        {
            string de = "";
            try
            {
                string opnfile = File.ReadAllText(OpenFile.FileName);
                de = AES.Decrypt(opnfile, PublicVar.encryptionKey.Get(), null, ps.HashAlgorithm, ps.PasswordIterations, ps.KeySize);
                customRTB.Text = de;
                string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
                customRTB.Select(Convert.ToInt32(cc2), 0);
            }
            catch (CryptographicException)
            {
                MessageBox.Show("Gotcha!");
            }

        }

How it works

2018-12-19_01-59-09

Quite a few cryptographic insecurities

I just searched "AES encryption" on Github to see what poor implementations of AES I could find and I came across your implementation.

There's quite a few issues with how you're using it here.

  1. Insecure initialization vector -- I'll leave this to you to figure out why not picking a secure random IV for every encryption you do is bad. "16CHARSLONG12345" is most definitely not a secure, random IV.
  2. Insecure password hashing -- Use a stronger hashing function like Bcrypt, scrypt, or pbkdf2.
  3. Unauthenticated cipher mode -- You're using CBC without any authentication of any kind. Look into using CBC with HMAC or a different AEAD like GCM mode or using libsodium's SecretBox.
  4. Ideally, you would derive different keys for each file. It looks like you're using the same key for every file.

There's probably more, but this was a quick look over.

Checkout "Cryptography Engineering" by Bruce Schneier and Niels Ferguson to learn how to safely and properly implement cryptographic functions like this.

[Feature request] Password generator

Add password generator. This will be a separate window that can be called with the button in Enter Key, Change key window and from the main menu. Also will be possible to generate passwords with different lengths and dificulty

[BUG] vertical scroll bar position

When toolbar is disabled, vertical scroll bar in editor is shifted down.

Screenshots

Video

Update
When Word Wrap in editor is disabled, horizontal scroll bar is also shifted right.

Ctrl+Alt+S for Settings is "ś" in Polish

Ctrl+Alt+S launches settings, which prevents to type "ś" mapped to the same key. "Ś" is a special Polish character.
I'd be glad if you could remap the "Settings" menu item to some other shortcut (please do not use Ctrl+Alt+Z, ..X, ..A, ..L, ..O ..E ..C either :))

Single Instance [Feature request]

Currently the user can start as many instances of Crypto Notepad as they may like. Of course this is not bad at all but in certain circumstances the user may need an option only a single instance of Crypto Notepad to be allowed. So I would like to suggest a new check-box (perhaps in Settings - Application):

  • Single instance

which, when selected, would allow only a single instance of Crypto Notepad to be running.

If this option is selected and the user tries to open a new instance of Crypto Notepad there bight be a warning message telling the user that the program is already running,

The Single instance option might be particularly useful when Minimize to Tray (#35) is enabled- the program may be hidden in system tray and the user may forget that the program is already running,

Always on Top [Feature request]

You may consider adding a new command:

  • Always on Top (or just On Top);

perhaps under Edit menu, CTRL+T keyboard shortcut seems logical.

I tried to use an external tool to achieve this (SmartSystemMenu, which adds additional commands in the title bar), screen:

Crypto Notepad 1 5 1 - 2019-10-08 - 003

but it didn't work as expected because the main window is always on top of Enter the encryption key window and it is impossible to enter the encryption key. So if Always on Top is implemented then Enter the encryption key window should be on top of the main window.

Always on Top feature may facilitate the use of drag&drop. But if you think that this is a fancy feature which requires too much work feel free to close this issue.

[Feature request] Detect URLs and mailto: links

It would be very handy if Crypto Notepad could detect URLs and mailto: links so these could be opened (either via double click or via CTRL+click) in the default web browser and in the default mail client.

[Feature request] Drag and Drop support for TXT and CNP files

It would be nice if Crypto Notepad supports drag and drop for TXT and CNP files. If a TXT file is dragged and dropped into Crypto Notepad it just opens it, while if a CNP file is dragged and dropped the program opens "Enter the encryption key:" dialog.

[BUG] New files don't saving when "Save As" & "Save" clicking

Describe the bug
New files don't saving when Save As & Save clicking.

To Reproduce
Steps to reproduce the behavior:

  1. Open the Crypto Notepad.
  2. Enter some text into the blank space of the text area.
  3. Click Save&Save As, enter the password, choose the file name and location.
  4. The file name is immediately created (it even appears File saved on the status bar, and then Ready), but the file just created is empty and with 0 bytes size.

Software version:

  • OS version [any]
  • App version [v1.6.2]

Tray Commands Iconized [Feature request]

As tray support is coming (#35) I would like to suggest a very tiny, cosmetic enhancement- icons for tray commands Show and Exit, screen:

Crypto Notepad 1 6 0 b2 - 2019-10-19 - 010

Perhaps tray commands should be iconized only when Settings - Application - Menu icons is enabled.

[Feature request] Drag & Drop file on executable to open it

Description

Add able to drag & drop *.cnp files on executable to open it.

Not really necessary feature, and it's can be implemented with a few lines of code, but I decide to add it for full support of drag & drop ideology. So, this feature will be added in the next minor update, of course if there will be enough changes for release a new version.

Video preview

Minimize to Tray [Feature request]

I would like to suggest a small enhancement which would be useful at least for me- and option to minimize Crypto Notepad to system tray. Currently I use an external tool to achieve this- SmartSystemMenu, which adds additional commands to title bar, screen:

Crypto Notepad 1 5 1 - 2019-10-08 - 001

but native support for system tray would be better. Perhaps you may add a couple of new check boxes under Tools - Settings - Application:

  • Minimize to tray;
  • Close to tray;

When Minimize to tray is enabled the program goes to system tray on minimize.
When Close to tray is enabled the program goes to system tray on close.

If tray support is implemented you may add a couple of tray commands, right click on tray icon:

  • Show;
  • Exit:

If you don't find this feature request useful enough feel free to discard it, I use many programs and my task bar becomes easily cluttered so I prefer to send the programs which are not immediately needed to system tray. My preferred settings would be to minimize the program to task bar and to close it to system tray ( Minimize to tray not checked, Close to tray checked).

Unable to decrypt after HDD crash and rebuild

Hello, !
I can not access my notes after Windows Ver Change.

Old (setup)
Synology NAS stores Note Files
DesktopPC HDD Win7 64Bit with on
Hardware Raid10 NFTS files system
Win7-64 Bit

New (setup)
Synology NAS stores Note Files (files not moved or changed at all)
Desktop PC HDD Win 2008R2 (as Desktop OS not as server)
Same Hardware Raid Raid10 NFTS File system.

My Computer crashed and burned and i need to replace 1 of my drive in Desktop PC
I replaced and rebuilt Raid and added a 500G SSD boot Drive. and rebuilt the 25Tb of RAID.
I install different version of windows. 2008R2 64Bit.
Just to be safe I installed all of my applications over again one by one.
Crypto note being one of them...

Problem Today
Crypto can not access any of my notes ( NONE ). It just kicks it back as Bad Key.
to double check myself and Keys (i am getting old)
I opened a VMware previous snapshot of my Win7 system and connected to the NAS.
The Snapshot could open the old Cnotes
The New OS still can not.

I was lucky that I had a snapshot. Or I would have been hosed. with 1500+ of these single page txt files. (Client Records.) Non-Profit Law Office

[Feature request] Improve settings

  • Change interface of Settings window (because of too many settings).
  • Rework the logic of applying app settings. For now after pressing Save button, settings applying without checking if any settings was really changed.

Tool Bar Icons

Hello,

First, I would like to thank you for maintaining and improving Crypto Notepad, I appreciate your work.

There is just one, cosmetic, insignificant thing (introduced in version 1.4.0) that I do not like- from Release-Notes:

New icons (http://p.yusukekamiyamane.com/)

I prefer the old tool bar icons (till version 1.3.0), screen:

Crypto Notepad 1 3 0 - 2019-09-30 - toolbar - 002

to the new tool bar icons (from version 1.4.0), screen:

Crypto Notepad 1 4 0 - 2019-09-30 - toolbar - 002

Would it be too much of a trouble to provide an option to use the old tool bar icons?

Regards

[BUG] Strange behavior after opening a file

Describe the bug
After opening the file, if you try to open another file, but do not enter the correct password, and then press the cancel button, you will no longer be able to change the file password, or save the file.

Steps to Reproduce

  1. Open some file
  2. Try to open another file, but type wrong password
  3. After showing the "Invalid key" message press the cancel button

Now menu item Change Key is inactive. After trying to press Save button appears error.

Video
2018-12-12_14-07-39

Software version:

  • OS version [Windows 10]
  • App version [v1.2.0]

[Feature request] Auto lock the application based on time

Auto lock the application based on time

In the setting add a "lock timeout". When the editor is out of focus longer than the time put in the setting, the application gets locked and needs the password or a pin to unlock again.

program not starting

After upppdatimg from v.: 1.5, I get this message (Win 10 v.:1909):
"
[Window Title]
c:\Utilities\Crypto Notepad.exe
[Content]
c:\Utilities\Crypto Notepad.exe
Operation did not complete successfully because the file contains a virus or potentially unwanted software.
[OK]
"
and the program didn´t work!
What is the problem?
b rgds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.