{"id":16215761,"url":"https://github.com/rainingcomputers/locksey","last_synced_at":"2025-04-07T22:42:01.237Z","repository":{"id":37572562,"uuid":"505978974","full_name":"RainingComputers/locksey","owner":"RainingComputers","description":"Personal CLI utility tool to easily encrypt and decrypt files in a directory","archived":false,"fork":false,"pushed_at":"2022-09-18T10:41:59.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T00:14:10.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/RainingComputers.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":"2022-06-21T19:32:31.000Z","updated_at":"2022-06-21T19:35:24.000Z","dependencies_parsed_at":"2022-09-12T15:24:26.705Z","dependency_job_id":null,"html_url":"https://github.com/RainingComputers/locksey","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/RainingComputers%2Flocksey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RainingComputers%2Flocksey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RainingComputers%2Flocksey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RainingComputers%2Flocksey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RainingComputers","download_url":"https://codeload.github.com/RainingComputers/locksey/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744284,"owners_count":20988781,"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-10T11:16:18.858Z","updated_at":"2025-04-07T22:42:01.215Z","avatar_url":"https://github.com/RainingComputers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔒 locksey 🔒\n\nPersonal CLI utility tool to easily encrypt and decrypt files in a directory. Can be used to \nencrypt secrets in a repo, MFA recovery codes, password text files, your journal/diary entries or any text file with personal or confidential information.\n\n## How does it work?\n\n- If you want a file in a directory to work with locksey, you name the file with ending with `.unlocked.*` extension.\nWhen you run `locksey lock \u003cpassword\u003e`, it will recursively find all `.unlocked.*` files, encrypt them and rename them to `.locked.*`.\n\n- Similarly when you run `locksey unlock \u003cpassword\u003e`, it will recursively find all `.locked.*` files, decrypt them and rename them to `.unlocked.*`.\n\n- You can also tell locksey to store the password in you home folder so you don't have to type it again.\n\n- Files are encrypted as described in [this](https://stackoverflow.com/a/55147077/5516481) stackoverflow post.\n\n## Install\n\n```\npython3 -m pip install locksey\n```\n\n## Usage\n\n```\npython3 -m locksey [-h] action [password]\n```\n\n*Actions*\n\n| Name      | Description                                                                                               |\n|-----------|-----------------------------------------------------------------------------------------------------------|\n| lock      | Recursively go through the directory encrypt and rename files matching glob `./**/*.unlocked.*`                      |\n| unlock    | Recursively go through the directory and decrypt and rename files matching glob `./**/*.locked.*`                    |\n| setpasswd | Store password for current directory in home folder (`~/.locksey`), base64 encoded so you don't have to provide it again |\n| rmpasswd  | Remove stored password for current directory                                                              |\n\n### Changing password \n\nFor changing the password in you current directory, run\n\n1. `unlock`\n2. `rmpasswd` if needed \n3. `lock` with new password\n4. `setpasswd` with new password if needed","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainingcomputers%2Flocksey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainingcomputers%2Flocksey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainingcomputers%2Flocksey/lists"}