{"id":18367101,"url":"https://github.com/synox/secret-letterbox","last_synced_at":"2025-04-10T16:46:15.900Z","repository":{"id":27974438,"uuid":"31467743","full_name":"synox/secret-letterbox","owner":"synox","description":"PGP-Encrypted, Offline-First, Write-Only diary","archived":false,"fork":false,"pushed_at":"2017-01-13T09:38:51.000Z","size":460,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T20:30:58.204Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","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-28T16:11:31.000Z","updated_at":"2022-06-05T11:16:29.000Z","dependencies_parsed_at":"2022-07-27T11:47:40.240Z","dependency_job_id":null,"html_url":"https://github.com/synox/secret-letterbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synox%2Fsecret-letterbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synox%2Fsecret-letterbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synox%2Fsecret-letterbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synox%2Fsecret-letterbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synox","download_url":"https://codeload.github.com/synox/secret-letterbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248254016,"owners_count":21072985,"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:00.392Z","updated_at":"2025-04-10T16:46:15.881Z","avatar_url":"https://github.com/synox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"encrypted secret letterbox\n=================\n\n**Client-Encrypted, Offline-First, Web diary or secret letterbox.** \n\n       Browser (JS)\n    +---------------+\n    |  Plaintext    |\n    |     +         |\n    |     |         |\n    | encrypt\u0026save  |\n    |     |         |                      Backend (PHP)\n    |     v         |        Sync        +--------------------+\n    | localStorage  | -----------------\u003e | Save to directory  |\n    +---------------+                    | (../data)          |\n                                         +--------------------+\n\n**Goal: \nAsymmetric encryption with minimal codebase** \n\nLicence: MIT\n\nFeatures: \n - PGP encryption in the Browser using [OpenPGP JS][1]\n - Offline WebApp with offline storage. \n - Automatic synchronization with the backend. \n - PHP-Backend has no dependencies and saves each message in a file. \n - can be combined with https://github.com/synox/diary\n\n## Disclaimer\nYou should update to the latest version of  [OpenPGP JS][1]. I can not validate the security of [OpenPGP JS][1], therefore I can not recommend it for production use. \n\nThere is no spam protection nor any valiation. \n\n\n## Installation\n\n - read \u0026 understand the source code \n - in `backend.php` change the $data_directory to something outside the `public_http` directory. \n - learn to use gpg, then create new key: `gpg --gen-key`  \n - Export public key `gpg --armor --export  \"my-key-name\"`\n - Insert public key into `public_key.js` (some SublimeText magic might help)\n\n\n## Useful scripts\n\nUse the follwing script to download and delete the encrypted messages from the server.\n\n    rsync --quiet --archive --update --times --whole-file --no-motd \\\n      --exclude=\".keep\" --include \"*.gpg\"  --remove-source-files \\\n      myserver.com:letterbox/data/ /home/steve/secrets/   \\\n      \u003e /var/log/secret-letterbox-sync.log 2\u003e\u00261\n\nFor development you can use the built-in php server: \n\n    php -S localhost:8000\n\n\n[1]: https://github.com/openpgpjs/openpgpjs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynox%2Fsecret-letterbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynox%2Fsecret-letterbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynox%2Fsecret-letterbox/lists"}