{"id":17976062,"url":"https://github.com/deemru/curve25519","last_synced_at":"2025-03-25T15:31:05.385Z","repository":{"id":56964652,"uuid":"146285952","full_name":"deemru/Curve25519","owner":"deemru","description":"Curve25519 sign/verify for PHP","archived":false,"fork":false,"pushed_at":"2023-04-10T15:52:56.000Z","size":29,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T18:16:26.561Z","etag":null,"topics":["curve25519","php","sign","signature","verify","wavesplatform"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/deemru/curve25519","language":"PHP","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/deemru.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}},"created_at":"2018-08-27T11:05:25.000Z","updated_at":"2023-10-06T08:10:03.000Z","dependencies_parsed_at":"2024-10-29T17:54:17.346Z","dependency_job_id":null,"html_url":"https://github.com/deemru/Curve25519","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"82c9be50cc3299da69a794e7f8bd407d9ec08caa"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deemru%2FCurve25519","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deemru%2FCurve25519/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deemru%2FCurve25519/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deemru%2FCurve25519/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deemru","download_url":"https://codeload.github.com/deemru/Curve25519/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245489756,"owners_count":20623789,"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":["curve25519","php","sign","signature","verify","wavesplatform"],"created_at":"2024-10-29T17:21:49.427Z","updated_at":"2025-03-25T15:31:03.799Z","avatar_url":"https://github.com/deemru.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Curve25519\n\n[![packagist](https://img.shields.io/packagist/v/deemru/curve25519.svg)](https://packagist.org/packages/deemru/curve25519) [![php-v](https://img.shields.io/packagist/php-v/deemru/curve25519.svg)](https://packagist.org/packages/deemru/curve25519)  [![GitHub](https://img.shields.io/github/actions/workflow/status/deemru/Curve25519/php.yml?label=github%20actions)](https://github.com/deemru/Curve25519/actions/workflows/php.yml)  [![codacy](https://img.shields.io/codacy/grade/49e6e148e477494da94320825c715dfd.svg?label=codacy)](https://app.codacy.com/gh/deemru/Curve25519/files) [![license](https://img.shields.io/packagist/l/deemru/curve25519.svg)](https://packagist.org/packages/deemru/curve25519)\n\n[Curve25519](https://github.com/deemru/Curve25519) implements the missing functionality of sign/verify on [elliptic curve 25519](https://en.wikipedia.org/wiki/Curve25519).\n\n- Cryptographically compatible sign/verify\n- Built in cache for last key calculations\n- Sodium variant of the sign function (~2000x faster)\n\n## Usage\n\n```php\n$curve25519 = new Curve25519();\n$msg = 'Hello, world!';\n\n$privateKey = random_bytes( 32 );\n$sig = $curve25519-\u003esign( $msg, $privateKey );\n\n$publicKey = $curve25519-\u003egetPublicKeyFromPrivateKey( $privateKey );\n$verify = $curve25519-\u003everify( $sig, $msg, $publicKey );\n\nif( !$verify )\n    exit( 1 );\n```\n\n## Requirements\n\n- [PHP](http://php.net) \u003e= 5.6\n\n## Recommended\n\n- [PHP](http://php.net) \u003e= 7.2\n- [Sodium](http://php.net/manual/en/book.sodium.php)\n\n## Installation\n\nRequire through Composer:\n\n```json\n{\n    \"require\": {\n        \"deemru/curve25519\": \"1.0.*\"\n    }\n}\n```\n\n## Notice\n\n- `sign_sodium` hashes private key internally by SHA-512\n- Beware of `rseed` functionality (for experts only)\n- Consider to use [ED25519_NO_SHA512SK sodium build](https://gist.github.com/deemru/145c3eb323bb3fb0f1cc4a72f5567640)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeemru%2Fcurve25519","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeemru%2Fcurve25519","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeemru%2Fcurve25519/lists"}