{"id":20462270,"url":"https://github.com/drish/cloak","last_synced_at":"2025-04-13T06:43:09.882Z","repository":{"id":47045077,"uuid":"89179313","full_name":"drish/cloak","owner":"drish","description":" A simple passphrase based file encryption tool.","archived":false,"fork":false,"pushed_at":"2021-09-15T22:22:38.000Z","size":45,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T23:11:11.722Z","etag":null,"topics":["file-encryption","nacl","scrypt","shamir-secret-sharing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drish.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":"2017-04-23T23:30:44.000Z","updated_at":"2024-07-29T06:09:03.000Z","dependencies_parsed_at":"2022-09-02T12:32:03.229Z","dependency_job_id":null,"html_url":"https://github.com/drish/cloak","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/drish%2Fcloak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drish%2Fcloak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drish%2Fcloak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drish%2Fcloak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drish","download_url":"https://codeload.github.com/drish/cloak/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675444,"owners_count":21143764,"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":["file-encryption","nacl","scrypt","shamir-secret-sharing"],"created_at":"2024-11-15T12:34:13.354Z","updated_at":"2025-04-13T06:43:09.862Z","avatar_url":"https://github.com/drish.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://rawgit.com/drish/cloak/master/cloak-logo.png\" height=\"180\" /\u003e\n  \u003ch3 align=\"center\"\u003eCloak (beta)\u003c/h3\u003e\n  \u003cp align=\"center\"\u003eA simple command line passphrase based file encryption tool.\u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.org/drish/cloak\"\u003e\u003cimg src=\"https://travis-ci.org/drish/cloak.svg?branch=master\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/drish/cloak/blob/master/LICENSE)\"\u003e\u003cimg src=\"http://img.shields.io/badge/license-Apache%20V2-blue.svg\"\u003e\u003c/a\u003e\n    \u003c!-- \u003ca href=\"https://ci.appveyor.com/project/libeclipse/memguard/branch/master\"\u003e\u003cimg src=\"https://ci.appveyor.com/api/projects/status/g6cg347cam7lli5m/branch/master?svg=true\"\u003e\u003c/a\u003e --\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/drish/cloak\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/drish/cloak\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n---\n\nCloak is a simple command line passphrase based file encryption tool, its similar to `openssl enc`, but it uses [scrypt](http://www.tarsnap.com/scrypt.html) for passphrase key derivation and [nacl](https://nacl.cr.yp.to/) box for encryption.\n\nThis tool is still a WIP.\n\n\n## Usage\n\n```sh\nUsage: cloak [options...] [flags...]\n\nExample:\n\ncloak encrypt -p rlycoolpass -f file.pdf\n\nOptions:\n  encrypt\tencrypts file\n  decrypt\tdecrypts file\n\nFlags:\n  -f \t[required] file to encrypt\n  -p \t[optional] user provided passphrase, if not provided /dev/urandom is used\n```\n\n## Examples \n\n```sh\n\u003e cloak encrypt -f file.pdf\n2017/04/30 15:13:21 generating random passphrase ...\n2017/04/30 15:13:21 file passphrase:  14abe93eb3347f91ad6c90f4ed3d9c8f\n2017/04/30 15:13:21 output file:  file\n2017/04/30 15:13:21 finished !  \n\n\u003e cloak encrypt -f details.pdf -p coolpassphrase\n2017/04/30 15:15:06 using user defined passphrase\n2017/04/30 15:15:06 output file:  details\n2017/04/30 15:15:06 finished ! \n\n\u003e cloak decrypt -f details.pdf -p coolpassphrase\n2017/04/30 15:16:26 finished ! \n\n```\n\n### TODO \n\t\n- flag \"-overwrite\" \"-o\" overwrites original file\n- flag \"-r\" encrypts all files in dir\n- efficitenly read large files using line by line chans\n- encrypt using msgpack format ?\n- key splitting using shamir\n- human readable passphrase generator ?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrish%2Fcloak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrish%2Fcloak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrish%2Fcloak/lists"}