{"id":22793090,"url":"https://github.com/kripod/elgamal.js","last_synced_at":"2025-04-16T18:48:58.564Z","repository":{"id":57222380,"uuid":"58669980","full_name":"kripod/elgamal.js","owner":"kripod","description":"ElGamal cryptosystem for JavaScript.","archived":false,"fork":false,"pushed_at":"2016-05-26T07:49:53.000Z","size":42,"stargazers_count":26,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T05:33:13.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/kripod.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-05-12T19:16:29.000Z","updated_at":"2025-01-07T21:22:04.000Z","dependencies_parsed_at":"2022-09-08T23:10:21.525Z","dependency_job_id":null,"html_url":"https://github.com/kripod/elgamal.js","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kripod%2Felgamal.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kripod%2Felgamal.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kripod%2Felgamal.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kripod%2Felgamal.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kripod","download_url":"https://codeload.github.com/kripod/elgamal.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249266479,"owners_count":21240763,"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-12-12T03:18:00.215Z","updated_at":"2025-04-16T18:48:58.544Z","avatar_url":"https://github.com/kripod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elgamal.js\n\nElGamal cryptosystem for JavaScript based on the implementation of\n[PyCrypto](https://github.com/dlitz/pycrypto).\n\n[![Version (npm)](https://img.shields.io/npm/v/elgamal.svg)](https://npmjs.com/package/elgamal)\n[![Build Status](https://img.shields.io/travis/kripod/elgamal.js/master.svg)](https://travis-ci.org/kripod/elgamal.js)\n[![Code Coverage](https://img.shields.io/codecov/c/github/kripod/elgamal.js/master.svg)](https://codecov.io/gh/kripod/elgamal.js)\n[![Gitter](https://img.shields.io/gitter/room/kripod/elgamal.js.svg)](https://gitter.im/kripod/elgamal.js)\n\n## Getting started\n\nIn order to access the provided cryptographic functions, an instance of ElGamal\nshould be generated or initialized with custom parameters.\n\n``` js\nimport ElGamal from 'elgamal';\n\nconst eg = await ElGamal.generateAsync(); // Recommended way of initialization\nconst egCustom = new ElGamal(prime, generator, publicKey, privateKey);\n```\n\n### Encryption and decryption\n\n```js\nconst secret = 'The quick brown fox jumps over the lazy dog';\nconst encrypted = await eg.encryptAsync(secret);\nconst decrypted = await eg.decryptAsync(encrypted);\n\nconsole.log(decrypted.toString() === secret); // true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkripod%2Felgamal.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkripod%2Felgamal.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkripod%2Felgamal.js/lists"}