{"id":18367110,"url":"https://github.com/synox/diary","last_synced_at":"2025-06-27T17:35:00.909Z","repository":{"id":27241562,"uuid":"30713385","full_name":"synox/diary","owner":"synox","description":"simple gpg-encrypted diary","archived":false,"fork":false,"pushed_at":"2017-01-17T07:29:15.000Z","size":11,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T16:39:53.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-12T17:08:02.000Z","updated_at":"2024-05-21T07:55:10.000Z","dependencies_parsed_at":"2022-08-31T19:41:45.587Z","dependency_job_id":null,"html_url":"https://github.com/synox/diary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/synox/diary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synox%2Fdiary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synox%2Fdiary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synox%2Fdiary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synox%2Fdiary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synox","download_url":"https://codeload.github.com/synox/diary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synox%2Fdiary/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262302418,"owners_count":23290254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T23:20:06.997Z","updated_at":"2025-06-27T17:35:00.843Z","avatar_url":"https://github.com/synox.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# encrypted diary\nThis collection of simple bash scripts provide an easy way to write  confidential notes with strong encryption. It uses asymetric GnuPG for encryption,  therefore you can write entries without entering the gpg password. You only have to decrypt (and enter your key-password) when you actually want to read something.\n\nHint: Can be combined mit https://github.com/synox/secret-letterbox\n\n# setup (on osx)\n * brew install fswatch\n * install GnuPG  (https://gpgtools.org/)\n * create a new GPG key only for this purpose (choose a strong passphrase!)\n * add the scripts to your `PATH`.\n\n# configuration\nYou have to configure some variables with your ``.bash_profile`` (or edit the source files). bash example:\n\n```bash\nexport DIARY_KEYID=1234567\nexport DIARY_EDITOR=/Applications/Mou.app/Contents/MacOS/Mou\nexport DIARY_DIRECTORY=/home/joe/diary\nexport DIARY_READER=subl\n```\n\nfishshell example:\n\n```bash\nset -x DIARY_KEYID 1234567\nset -x DIARY_EDITOR /Applications/Mou.app/Contents/MacOS/Mou\nset -x DIARY_DIRECTORY /home/joe/diary\nset -x DIARY_READER subl\n```\n\n# usage\n## write an entry (add)\nuse ``diary-add`` which reads stdin:\n\n```bash\necho my first entry | diary-add\n\ndiary-add \u003c notes.html\n\ndiary-add\n my first entry\n \u003cCTRL-D\u003e\n ```\n\n`diary-add-hidden` is just like `diary-add`, but without echoing what you type.\n\nor you can attach a file\n\n```bash\ndiary-add /home/john/photo.jpg\n```\n\n## edit encrypted entry\nuse ``diary-edit`` to open gpg-file in a fancy text/markdown editor. When saving, the content is automatically encrypted again.\n\n```bash\ndiary-edit path/to/file.txt.gpg\n```\nor use the vim gpg plugin: https://github.com/jamessan/vim-gnupg\n\n```bash\nvi path/to/file.txt.gpg\n```\n\n## decrypt one entry console\n``diary-print`` simply prints an entry to stdout.\n\n```bash\ndiary-print path/to/file.txt.gpg\n```\n\n## read all entries\n``diary-read-all`` decrypts all entries and prints in $DIARY_READER. It used `gpg2` for to use the gpg-agent on OSX. The implementation can be changed with the environment variable `GPG_CMD`.\n\n```bash\ndiary-read-all\n```\n\n----\n\n### similar projects\nThere are a few similar projects. I didn't use them because I want the scripts to be short and validatable.\n\n* https://github.com/matthiasbeyer/diary.sh/\n* https://github.com/colinux/GPG-Editor/blob/master/GPG-Editor.sh\n* https://github.com/almien1/NoPeeking\n\nArticles:\n * http://abesto.net/journaling-for-geeks/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynox%2Fdiary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynox%2Fdiary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynox%2Fdiary/lists"}