{"id":15493826,"url":"https://github.com/peter554/crypt","last_synced_at":"2025-07-31T18:02:35.447Z","repository":{"id":100534802,"uuid":"374363494","full_name":"Peter554/crypt","owner":"Peter554","description":"Document encryption tool","archived":false,"fork":false,"pushed_at":"2021-06-06T13:15:04.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T11:28:50.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Peter554.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-06T13:10:09.000Z","updated_at":"2021-06-06T13:17:23.000Z","dependencies_parsed_at":"2023-05-15T19:15:29.479Z","dependency_job_id":null,"html_url":"https://github.com/Peter554/crypt","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/Peter554%2Fcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Peter554","download_url":"https://codeload.github.com/Peter554/crypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241426173,"owners_count":19960986,"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-10-02T08:09:33.715Z","updated_at":"2025-03-01T21:21:36.550Z","avatar_url":"https://github.com/Peter554.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crypt\n\n[![CI](https://github.com/Peter554/crypt/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Peter554/crypt/actions/workflows/ci.yml)\n\nCLI for encryption and decryption of documents.\n\nI am not a crypto expert - *use at your own peril*!\n\n- *Initialisation*. The vault is initialised with a password. A hash of this password is stored for later comparison (bcrypt). From this password we derive a root key, via a key derivation function (Argon2). We then generate a random document key, which will be used later for encryption/decryption of documents. We encrypt the document key using the root key, and store the result for later use.\n\n- *Encryption/decryption*. To encrypt/decrypt a document we need the unencrypted root key. This is obtained by first requesting the user for the vault password. If the provided password is correct (compare with stored hash) the root key is again derived from the password and used to decrypt the stored, encrypted document key. Once the unencrypted document key is obtained the document is simply encrypted/decrypted using this key (Advanced Encryption Standard, Galois Counter Mode).\n\n- *Change password*. Having both a password derived root key and a document key makes it relatively simple to change the vault password. Changing the vault password involves decryption of the root key using the old password and re-encryption using the new password. There is no need to re-encrypt documents!\n\n```\n\u003e crypt help\n\nUsage: crypt \u003ccommand\u003e\n\nCLI for encryption and decryption of documents.\n\nCommands:\n\n* init\n\n  crypt init\n\n  Initialise the crypt vault.\n\n* encrypt\n\n  crypt encrypt \u003csrcpath\u003e [dstpath]\n\n  Encrypt the document at srcpath and store the result at dstpath.\n  dstpath defaults to srcpath+\".crypt\".\n\n* decrypt\n\n  crypt decrypt \u003csrcpath\u003e \u003cdstpath\u003e\n\n  Decrypt the document at srcpath and store the result at dstpath.\n\n* change_password\n\n  crypt change_password\n\n  Change the crypt vault password.  \n\n* help\n\n  crypt help\n\n  Print this help. \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter554%2Fcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter554%2Fcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter554%2Fcrypt/lists"}