{"id":33152959,"url":"https://github.com/yann2192/pyelliptic","last_synced_at":"2025-12-30T05:56:24.990Z","repository":{"id":62580152,"uuid":"2309776","full_name":"yann2192/pyelliptic","owner":"yann2192","description":"Python OpenSSL wrapper. For modern cryptography with ECC, AES, HMAC, Blowfish, ...","archived":true,"fork":false,"pushed_at":"2017-04-25T12:58:27.000Z","size":127,"stargazers_count":132,"open_issues_count":0,"forks_count":59,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-28T05:54:10.365Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yann2192.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","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":"2011-09-01T19:18:37.000Z","updated_at":"2025-06-30T19:24:53.000Z","dependencies_parsed_at":"2022-11-03T20:49:34.269Z","dependency_job_id":null,"html_url":"https://github.com/yann2192/pyelliptic","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/yann2192/pyelliptic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yann2192%2Fpyelliptic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yann2192%2Fpyelliptic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yann2192%2Fpyelliptic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yann2192%2Fpyelliptic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yann2192","download_url":"https://codeload.github.com/yann2192/pyelliptic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yann2192%2Fpyelliptic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284628148,"owners_count":27037491,"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-11-15T02:00:06.050Z","response_time":57,"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":[],"created_at":"2025-11-15T19:00:46.109Z","updated_at":"2025-11-15T22:00:38.954Z","avatar_url":"https://github.com/yann2192.png","language":"Python","funding_links":[],"categories":["Frameworks and Libs"],"sub_categories":["Python"],"readme":"## WARNING\n\nPyElliptic is **DEPRECATED**.\n\nSee https://github.com/yann2192/pyelliptic/issues/50\n\n# PyElliptic\n\nPyElliptic is a high level wrapper for the cryptographic library : OpenSSL.\nUnder the Berkeley software distribution license (see LICENSE).\n\nPython3 compatible. For GNU/Linux and Windows.\nRequire OpenSSL\n\n## Features\n\n### Asymmetric cryptography using Elliptic Curve Cryptography (ECC)\n\n* Key agreement : ECDH\n* Digital signatures : ECDSA\n* Hybrid encryption : ECIES (like RSA)\n\n### Symmetric cryptography\n\n* AES-128 (CBC, OFB, CFB, CTR)\n* AES-256 (CBC, OFB, CFB, CTR)\n* Blowfish (CFB and CBC)\n* RC4\n\n### Other\n\n* CSPRNG\n* HMAC (using SHA512)\n* PBKDF2 (SHA256 and SHA512)\n\n## Example\n\n```python\n#!/usr/bin/python\n\nfrom binascii import hexlify\n\nimport pyelliptic\n\n# Symmetric encryption\niv = pyelliptic.Cipher.gen_IV('aes-256-cfb')\nctx = pyelliptic.Cipher(\"secretkey\", iv, 1, ciphername='aes-256-cfb')\n\nciphertext = ctx.update('test1')\nciphertext += ctx.update('test2')\nciphertext += ctx.final()\n\nctx2 = pyelliptic.Cipher(\"secretkey\", iv, 0, ciphername='aes-256-cfb')\nprint(ctx2.ciphering(ciphertext))\n\n# Asymmetric encryption\nalice = pyelliptic.ECC() # default curve: sect283r1\nbob = pyelliptic.ECC(curve='sect571r1')\n\nciphertext = alice.encrypt(\"Hello Bob\", bob.get_pubkey(),\n                           ephemcurve='sect571r1')\nprint(bob.decrypt(ciphertext))\n\nsignature = bob.sign(\"Hello Alice\")\n# alice's job :\nprint(pyelliptic.ECC(pubkey=bob.get_pubkey(),\n                     curve='sect571r1').verify(signature, \"Hello Alice\"))\n\n# ERROR !!!\ntry:\n    key = alice.get_ecdh_key(bob.get_pubkey())\nexcept:\n    print(\"For ECDH key agreement, the keys must be defined on the same curve !\")\n\nalice = pyelliptic.ECC(curve='sect571r1')\nprint(hexlify(alice.get_ecdh_key(bob.get_pubkey())))\nprint(hexlify(bob.get_ecdh_key(alice.get_pubkey())))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyann2192%2Fpyelliptic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyann2192%2Fpyelliptic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyann2192%2Fpyelliptic/lists"}