{"id":18815365,"url":"https://github.com/crosbymichael/crypt","last_synced_at":"2025-04-13T21:51:24.991Z","repository":{"id":23652329,"uuid":"27022876","full_name":"crosbymichael/crypt","owner":"crosbymichael","description":"Easy cross platform encryption and decryption","archived":false,"fork":false,"pushed_at":"2014-11-24T20:13:03.000Z","size":148,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T12:11:45.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/crosbymichael.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":"2014-11-23T05:20:17.000Z","updated_at":"2022-10-30T22:25:20.000Z","dependencies_parsed_at":"2022-08-22T02:30:55.827Z","dependency_job_id":null,"html_url":"https://github.com/crosbymichael/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/crosbymichael%2Fcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosbymichael%2Fcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosbymichael%2Fcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosbymichael%2Fcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crosbymichael","download_url":"https://codeload.github.com/crosbymichael/crypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788855,"owners_count":21161726,"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-07T23:48:47.708Z","updated_at":"2025-04-13T21:51:24.968Z","avatar_url":"https://github.com/crosbymichael.png","language":"Go","readme":"# crypt\n\ncrypt is a small app to encrypt and decrypt files with aes encryption.  It is \nportable and works on OSX, Linux, and Windows along with any other OS that \nsupports go.\n\nA key can be specified with the `--key` flag or via stdin if `--key` is \nnot specified.  You may want to provide your key via stdin for encryption\nand decryption so that it is not saved in your bash history.\n\n### Examples\n\n**Encrypt the contents from STDIN to a file**\n```bash\n\u003e echo \"hello world\" | crypt -e --key test -i encrypted-text\n```\n\n**Decrypt the contents from STDIN to STDOUT**\n```bash\n\u003e cat encrypted-text | crypt -d --key test -i -o\nhello world\n```\n\n**Encrypt a large tar file to a new file**\n```bash\n\u003e crypt -e docker-image.tar encrypted-image.xxx\nplease enter your key:\n\u003e secret\n1.24 GB / 1.25 GB [=========================================================================] 99.70 % 58.72 MB/s\n# test to see if I can read the file\n\u003e tar -tvf encrypted-image.xxx\ntar: This does not look like a tar archive\ntar: Skipping to next header\ntar: Exiting with failure status due to previous errors\n```\n\n**Decrypt a large file back to the original contents**\n```bash\n\u003e crypt -d encrypted-image.xxx docker-image-unencrypted.tar\nplease enter your key:\n\u003e secret\n1.24 GB / 1.25 GB [=========================================================================] 99.45 % 70.80 MB/s\n# look at the tar headers\n\u003e tar -tvf docker-image-unencrypted.tar\ndrwxr-xr-x 0/0               0 2014-11-22 21:14 05c6d847812ccad7f327f12ec2404dd972fc64e65c6c8a996b402c8e3f990d7c/\n-rw-r--r-- 0/0               3 2014-11-22 21:14 05c6d847812ccad7f327f12ec2404dd972fc64e65c6c8a996b402c8e3f990d7c/\nVERSION\n```\n\n```bash\nNAME:\n   crypt - encrypt and decrypt files easily\n\nUSAGE:\n   crypt [global options] command [command options] [arguments...]\n\nVERSION:\n   1\n\nAUTHOR:\n  @crosbymichael\n\nCOMMANDS:\n   help, h      Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --key                key to use for the encryption algo\n   --encrypt, -e        encrypt a file\n   --decrypt, -d        decrypt a file\n   --stdin, -i          accept input for STDIN\n   --stdout, -o         return output to STDOUT\n   --help, -h           show help\n   --version, -v        print the version\n```\n\n### TODO:\n* Keep it simple stupid\n\n## License - MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrosbymichael%2Fcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrosbymichael%2Fcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrosbymichael%2Fcrypt/lists"}