GithubHelp home page GithubHelp logo

journal.py's Introduction

journal.py attempts to be a simple-as-possible-but-not-simpler personal journal program using gpg for encryption. To that end, the entire program is contained in a single file, and the only required dependencies are this file, python 2.7 or greater, and gpg. An effort has been made to allow almost any text editing program to be used in conjunction with journal.py.

Currently, you also need to have a keypair generated in gpg: it is as simple as typing "gpg --gen-key" and choosing the default selections.

Essentially, it is just a convenient, thin wrapper over gpg's public-key encryption that also handles naming and moving around the actual files for you.

However, the cost of being able to use any text editor is that we have to write the file unencrypted at some point. Several precautions should be taken if you are really paranoid:

- Disable autosave features that write to a different file. 
- Mount your /tmp dir (or whichever temp dir you choose to use) as a tmpfs, or use a USB drive or something that keeps you from writing the unencrypted files to the same disk you are storing the encrypted ones. This also prevents data leakage in the case of a crash before the unencrypted file is deleted. 
- Make sure you have shred installed, especially if you are not using a tmpfs.
- If you're really crazy, turn off journaling on the partition you're writing the unencrypted file to. 

Obviously, encryption doesn't matter if someone has access to your machine while it is running; they could just intercept the keystrokes as you type. Encryption is only good at preventing access after it's been written.

If you are reading this and know more about this sort of thing than I do (which you probably do) I would love to know:
- If there's a better way, using the tempfile library or something else, to create "more temporary" files that I can still pass to arbitrary programs.
- Other suggestions.

Have fun with your journals.

journal.py's People

Contributors

boustrophedon avatar

Stargazers

Corey Ford avatar

Watchers

James Cloos avatar  avatar  avatar

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.