{"id":31729746,"url":"https://github.com/norastech/next-edge-crypto","last_synced_at":"2026-04-02T02:51:04.000Z","repository":{"id":220219946,"uuid":"751096317","full_name":"NorasTech/next-edge-crypto","owner":"NorasTech","description":"`next-edge-crypto` uses the WebCrypto API, optimized for edge runtime environments like Next.js and Vercel. Ideal for projects requiring reliable crypto operations outside of Node.js' native capabilities, with a scalable architecture ready for future enhancements.","archived":false,"fork":false,"pushed_at":"2024-02-03T12:43:10.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T07:16:19.572Z","etag":null,"topics":["crypto","edge-runtime","javascript","javascript-library","nextjs","nodejs","typescript","typescript-library","vercel"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/NorasTech.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-31T23:14:20.000Z","updated_at":"2024-11-05T15:08:52.000Z","dependencies_parsed_at":"2024-02-03T13:46:13.249Z","dependency_job_id":null,"html_url":"https://github.com/NorasTech/next-edge-crypto","commit_stats":null,"previous_names":["norastech/next-edge-crypto"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NorasTech/next-edge-crypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NorasTech%2Fnext-edge-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NorasTech%2Fnext-edge-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NorasTech%2Fnext-edge-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NorasTech%2Fnext-edge-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NorasTech","download_url":"https://codeload.github.com/NorasTech/next-edge-crypto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NorasTech%2Fnext-edge-crypto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000989,"owners_count":26082972,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","edge-runtime","javascript","javascript-library","nextjs","nodejs","typescript","typescript-library","vercel"],"created_at":"2025-10-09T07:16:18.790Z","updated_at":"2025-10-09T07:16:21.407Z","avatar_url":"https://github.com/NorasTech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-edge-crypto\n\n`next-edge-crypto` is a JavaScript library crafted to provide sophisticated encryption and decryption functionalities using the WebCrypto API. This library is specially designed for edge runtime environments, such as those in Next.js or Vercel, serving as a contemporary alternative to Node.js's native crypto module.\n\n## Features\n\n- **WebCrypto API Utilization**: Employs the WebCrypto API for encryption and decryption, aligning with contemporary web standards.\n- **Edge Runtime Optimization**: Tailored for peak performance in edge runtime environments.\n- **Scalable Architecture**: Built with a vision to incorporate additional encryption algorithms and broaden functionalities in future updates.\n\n## Installation\n\nTo integrate `next-edge-crypto` into your project, use the following command:\n\n```bash\nnpm install next-edge-crypto\n# or\nyarn add next-edge-crypto\n```\n\n## Usage\n\nTo use the library, start by importing the necessary functions:\n\n```ts\nimport { encrypt, decrypt } from 'next-edge-crypto';\n```\nor you can import like this:\n```ts\nimport * as crypto from 'next-edge-crypto';\n```\n\nThen, you can use the functions as follows:\n\n### Encryption\nEncrypt your data as follows:\n\n```ts\nconst encryptedData = await encrypt(\"your data here\", \"your base64 encoded key\");\nconsole.log(encryptedData); // Outputs encrypted data in hex format\n```\n\n### Decryption\nDecrypt your data as follows:\n\n```ts\n\nconst decryptedData = await decrypt(\"your encrypted data here\", \"your base64 encoded key\");\nconsole.log(decryptedData); // Outputs the original data\n```\n\n## API reference\n- `encrypt(data: string, key: string): Promise\u003cstring\u003e`: Encrypts the input string using the AES-CBC algorithm and returns the encrypted data in hex format.\n- `decrypt(data: string, key: string): Promise\u003cstring\u003e`: Decrypts the input string using the AES-CBC algorithm and returns the original data.\n\n## Contributing\nWe welcome contributions to next-edge-crypto, particularly those that add new encryption algorithms and expand functionality. Feel free to fork the repository, apply your enhancements, and submit a pull request.\n\n## License\nThis project is licensed under the MIT License. See [LICENSE](/LICENSE) for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorastech%2Fnext-edge-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorastech%2Fnext-edge-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorastech%2Fnext-edge-crypto/lists"}