{"id":27696591,"url":"https://github.com/euandrelucas/adg-crypto","last_synced_at":"2025-04-25T15:11:42.851Z","repository":{"id":289096652,"uuid":"872015046","full_name":"euandrelucas/adg-crypto","owner":"euandrelucas","description":"API simples e rápida para criptografar textos e arquivos com Node.js + Fastify.","archived":false,"fork":false,"pushed_at":"2025-04-21T13:45:32.000Z","size":66,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T14:53:11.802Z","etag":null,"topics":["crypto","decryption","encryption","file-encryption","secure-api","security","text-encryption"],"latest_commit_sha":null,"homepage":"https://crypto.andrepaiva.dev","language":"JavaScript","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/euandrelucas.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,"zenodo":null}},"created_at":"2024-10-13T15:10:03.000Z","updated_at":"2025-04-21T13:47:03.000Z","dependencies_parsed_at":"2025-04-21T15:04:15.471Z","dependency_job_id":null,"html_url":"https://github.com/euandrelucas/adg-crypto","commit_stats":null,"previous_names":["euandrelucas/adg-crypto"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euandrelucas%2Fadg-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euandrelucas%2Fadg-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euandrelucas%2Fadg-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euandrelucas%2Fadg-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/euandrelucas","download_url":"https://codeload.github.com/euandrelucas/adg-crypto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250840589,"owners_count":21495910,"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":["crypto","decryption","encryption","file-encryption","secure-api","security","text-encryption"],"created_at":"2025-04-25T15:11:42.400Z","updated_at":"2025-04-25T15:11:42.845Z","avatar_url":"https://github.com/euandrelucas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🔐 ADG Crypto\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Uma API de criptografia autoral construída com Node.js + Fastify, simples de usar e pronta para produção.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/euandrelucas/adg-crypto\"\u003e\u003cimg src=\"https://img.shields.io/badge/github-euandrelucas/adg--crypto-8b5cf6?style=for-the-badge\u0026logo=github\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://nodejs.org/\"\u003e\u003cimg src=\"https://img.shields.io/badge/feito%20com-Node.js-339933?style=for-the-badge\u0026logo=node.js\u0026logoColor=white\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.fastify.io/\"\u003e\u003cimg src=\"https://img.shields.io/badge/server-Fastify-black?style=for-the-badge\u0026logo=fastify\u0026logoColor=white\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://crypto.andrepaiva.dev\"\u003e\u003cimg src=\"https://img.shields.io/badge/demo-online-blueviolet?style=for-the-badge\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## 📌 Sobre\n\n**ADG Crypto** é uma API HTTP para criptografia de **textos** e **arquivos**, construída com foco em performance e simplicidade.\n\nEla oferece endpoints rápidos e seguros para operações de criptografia e descriptografia, sendo ideal para aplicações que lidam com dados sensíveis.\n\n---\n\n## 🚀 Começando\n\n### Clonar o projeto\n```bash\ngit clone https://github.com/euandrelucas/adg-crypto.git\ncd adg-crypto\n```\n\n### Instalar dependências\n```bash\nnpm install\n```\n\n### Executar o servidor\n```bash\nnpm start\n```\n\n\u003e O servidor estará disponível em: [http://localhost:3000](http://localhost:3000)\n\n---\n\n## 📡 Endpoints\n\n### 🔸 Criptografar texto\n\n**POST** `/encrypt`\n\n```json\n{ \"text\": \"DreamTeam\" }\n```\n\n```bash\ncurl -X POST http://localhost:3000/encrypt \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\"text\": \"DreamTeam\"}'\n```\n\n**GET** `/encrypt?text=DreamTeam`\n\n---\n\n### 🔸 Descriptografar texto\n\n**POST** `/decrypt`\n\n```json\n{ \"encryptedText\": \"TEXTO_CRIPTOGRAFADO\" }\n```\n\n```bash\ncurl -X POST http://localhost:3000/decrypt \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\"encryptedText\": \"TEXTO_CRIPTOGRAFADO\"}'\n```\n\n**GET** `/decrypt?encryptedText=TEXTO_CRIPTOGRAFADO`\n\n---\n\n### 🔸 Criptografar arquivo\n\n**POST** `/encrypt-file`  \nEnvie um arquivo via `multipart/form-data`. O arquivo criptografado será retornado.\n\n---\n\n### 🔸 Descriptografar arquivo\n\n**POST** `/decrypt-file`  \nEnvie um arquivo criptografado via `multipart/form-data`. O arquivo original será retornado.\n\n---\n\n## 📚 Documentação\n\nAcesse diretamente no navegador:  \n📄 [http://localhost:3000](http://localhost:3000)\n\n---\n\n## ⚠️ Nota\n\nO arquivo `crypto.js` foi adicionado ao `.gitignore` por conter as funções internas de criptografia.  \nEle está disponível apenas na instância de demonstração:  \n🔗 [https://crypto.andrepaiva.dev](https://crypto.andrepaiva.dev)\n\n---\n\n## 🤝 Contribuições\n\nContribuições são bem-vindas!  \nAbra uma issue ou envie um pull request com melhorias ou novas ideias.\n\n---\n\n## 🪪 Licença\n\nDistribuído sob a licença ISC.  \nVeja o arquivo [`LICENSE`](./LICENSE) para mais detalhes.\n\n---\n\n## 🧑‍💻 Autor\n\nDesenvolvido com 💙 por [André Lucas](https://github.com/euandrelucas)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuandrelucas%2Fadg-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feuandrelucas%2Fadg-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuandrelucas%2Fadg-crypto/lists"}