{"id":15324529,"url":"https://github.com/mrinjamul/go-encryptor","last_synced_at":"2025-07-19T07:04:29.199Z","repository":{"id":49957413,"uuid":"339333867","full_name":"mrinjamul/go-encryptor","owner":"mrinjamul","description":"A simple File Encryptor","archived":false,"fork":false,"pushed_at":"2023-09-19T00:00:20.000Z","size":69,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T14:44:37.863Z","etag":null,"topics":["aes-encryption","command-line","encryptor","golang"],"latest_commit_sha":null,"homepage":"http://mrinjamul.is-a.dev/go-encryptor","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/mrinjamul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-02-16T08:39:59.000Z","updated_at":"2024-09-28T10:37:33.000Z","dependencies_parsed_at":"2024-06-21T02:09:44.651Z","dependency_job_id":"2c967ac0-20b9-4541-b1c9-4f8566cae022","html_url":"https://github.com/mrinjamul/go-encryptor","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mrinjamul/go-encryptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinjamul%2Fgo-encryptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinjamul%2Fgo-encryptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinjamul%2Fgo-encryptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinjamul%2Fgo-encryptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrinjamul","download_url":"https://codeload.github.com/mrinjamul/go-encryptor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinjamul%2Fgo-encryptor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265899731,"owners_count":23845875,"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":["aes-encryption","command-line","encryptor","golang"],"created_at":"2024-10-01T09:27:06.789Z","updated_at":"2025-07-19T07:04:29.165Z","avatar_url":"https://github.com/mrinjamul.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-encryptor\n\n[![build status](https://github.com/mrinjamul/go-encryptor/workflows/test/badge.svg)]()\n[![build status](https://github.com/mrinjamul/go-encryptor/workflows/release/badge.svg)]()\n[![go version](https://img.shields.io/github/go-mod/go-version/mrinjamul/go-encryptor.svg)](https://github.com/mrinjamul/go-encryptor)\n[![GoReportCard](https://goreportcard.com/badge/github.com/mrinjamul/go-encryptor)](https://goreportcard.com/report/github.com/mrinjamul/go-encryptor)\n[![Code style: standard](https://img.shields.io/badge/code%20style-standard-blue.svg)]()\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/mrinjamul/gpassmanager/blob/master/LICENSE)\n[![Github all releases](https://img.shields.io/github/downloads/mrinjamul/go-encryptor/total.svg)](https://GitHub.com/mrinjamul/go-encryptor/releases/)\n\n## Overview\n\na command-line application written in Go that allows for encrypting and decrypting data using AES 256 (GCM) and ChaCha20 poly 1305 encryption algorithms. It provides a simple and straightforward way to protect sensitive data and ensure that it can only be accessed by authorized users.\n\n## Features\n\n- Provides a simple and easy-to-use command-line interface\n- Can encrypt any file or folder\n- AES-256 encryption\n- Password based encryption\n- XChaCha20-Poly1305 encryption\n\n**Tip**: To encrypt folders, create a tarball of the folder then encrypt it (**Recommanded**)\n\n```sh\ntar -cf folder.tar folder ...\n```\n\n## Build\n\nTo build the application, you need to have Go installed on your machine.\n\n```sh\ngo build\n```\n\n## Usage\n\nThe following is an example of how to use go-encryptor to encrypt data using AES 256 (GCM):\n\n```sh\ngo-encryptor encrypt -p \"256Key-32Characters1234567890\" -m \"aes\" \"filename\"\n```\n\nAnd the following is an example of how to use go-encryptor to encrypt data using ChaCha20-Poly1305:\n\n```sh\ngo-encryptor encrypt -p \"256Key-32Characters1234567890\" -m \"chacha20\" \"filename\"\n```\n\nFor decryption, the usage is similar, with the only difference being the use of the decrypt subcommand instead of encrypt.\n\nFor a full list of options and usage instructions, run `go-encryptor --help`\n\nUse k flag in both `encrypt` \u0026 `decrypt` to keep the file.\n\n```sh\ngo-encryptor encrypt -k \"filename\"\n```\n\nor\n\n```sh\ngo-encryptor encrypt --keep \"filename\"\n```\n\n## More\n\nEncrypt a file with a specific encryption method using a password,\n\n```sh\ngo-encryptor encrypt --method \"aes\" --password \"password\" \"filename\"\n```\n\nor\n\n```sh\ngo-encryptor encrypt -m \"aes\" -p \"password\" \"filename\"\n```\n\nDecrypt a file and print the output to stdout and pipe it to another command,\n\n```sh\ngo-encryptor decrypt -p \"password\" --print \"filename\" | [command]\n```\n\n```\n\n    go-encryptor: A file encryptor.\n    go-encryptor is created to be as simple as possible to help you\n    encrypt and decrypt files.\n\n    Usage:\n    go-encryptor [command]\n\n    Available Commands:\n    decrypt     Decrypt encrypted file\n    encrypt     Encrypt file or folder\n    help        Help about any command\n    version     Prints version\n\n    Flags:\n    -h, --help   help for go-encryptor\n\n    Use \"go-encryptor [command] --help\" for more information about a command.\n\n```\n\n## Installing\n\n[ Download ](https://github.com/mrinjamul/go-encryptor/releases) for your platform\n\nor Install from snap\n\n```sh\nsudo snap install go-encryptor\n```\n\n## Benchmarks\n\nFor AES-256 encryption (`time go-encryptor en -m \"aes\" -p \"Password\" alpine.iso`) ,\n\n```\nalpine.iso encrypted successfully.\n\n________________________________________________________\nExecuted in    3.42 secs    fish           external\n   usr time    3.19 secs  277.00 micros    3.19 secs\n   sys time    0.32 secs   99.00 micros    0.32 secs\n\nalpine.iso decrypted successfully.\n\n________________________________________________________\nExecuted in    3.40 secs    fish           external\n   usr time    3.18 secs  347.00 micros    3.18 secs\n   sys time    0.25 secs  126.00 micros    0.25 secs\n\n```\n\nFor XChaCha20-Poly1305 encryption (`time go-encryptor en -m \"xchacha\" -p \"Password\" alpine.iso`) ,\n\n```\nalpine.iso encrypted successfully.\n\n________________________________________________________\nExecuted in  802.34 millis    fish           external\n   usr time  898.45 millis  414.00 micros  898.04 millis\n   sys time  296.73 millis  135.00 micros  296.60 millis\n\n\nalpine.iso decrypted successfully.\n\n________________________________________________________\nExecuted in  755.63 millis    fish           external\n   usr time  804.23 millis    0.00 micros  804.23 millis\n   sys time  365.06 millis  584.00 micros  364.48 millis\n\n```\n\n## License\n\nThis application is licensed under MIT, Copyright © 2021 Injamul Mohammad Mollah \u003cmrinjamul@gmail.com\u003e\n\n## Troubleshooting\n\nIf you encounter any errors while using go-encryptor, make sure that you have the correct key, algorithm and that the input and output files are correctly specified. If the issue persists, please file an issue on the GitHub repository for the project.\n\n## Conclusion\n\ngo-encryptor is a simple and easy-to-use command-line application for encrypting and decrypting data using AES 256 (GCM) and ChaCha20-Poly1305 encryption algorithms. Its straightforward configuration and user-friendly interface make it a great choice for protecting sensitive information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrinjamul%2Fgo-encryptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrinjamul%2Fgo-encryptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrinjamul%2Fgo-encryptor/lists"}