{"id":15025417,"url":"https://github.com/shgysk8zer0/phpcrypt","last_synced_at":"2026-04-01T17:02:48.956Z","repository":{"id":79780751,"uuid":"80335066","full_name":"shgysk8zer0/phpcrypt","owner":"shgysk8zer0","description":"Provides a variety of cryptographic traits and classes to PHP","archived":false,"fork":false,"pushed_at":"2017-10-27T06:39:46.000Z","size":59,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-30T21:00:17.236Z","etag":null,"topics":["aes","aes256","cryptography","jscrypt","php","php-7","phpcrypt","rsa","spl-autoload","traits"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shgysk8zer0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2017-01-29T07:54:31.000Z","updated_at":"2020-12-09T04:07:48.000Z","dependencies_parsed_at":"2023-02-26T18:31:37.038Z","dependency_job_id":null,"html_url":"https://github.com/shgysk8zer0/phpcrypt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shgysk8zer0/phpcrypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fphpcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fphpcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fphpcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fphpcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shgysk8zer0","download_url":"https://codeload.github.com/shgysk8zer0/phpcrypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fphpcrypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aes","aes256","cryptography","jscrypt","php","php-7","phpcrypt","rsa","spl-autoload","traits"],"created_at":"2024-09-24T20:02:18.764Z","updated_at":"2026-03-27T03:04:31.076Z","avatar_url":"https://github.com/shgysk8zer0.png","language":"PHP","readme":"# PHPCrypt\n\n[![Join the chat at https://gitter.im/shgysk8zer0/phpcrypt](https://badges.gitter.im/shgysk8zer0/phpcrypt.svg)](https://gitter.im/shgysk8zer0/phpcrypt?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Build Status](https://travis-ci.org/shgysk8zer0/phpcrypt.svg?branch=master)](https://travis-ci.org/shgysk8zer0/phpcrypt)\n\u003e Provides easy to use classes and traits for cryptographic functions using `openssl_*`. Intended\n\u003e to be compatible with [JSCrypt](https://github.com/shgysk8zer0/JSCrypt) \u0026\n\u003e [SubtleCrypto / JWK](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey)\n\n## Requires:\n-   **PHP \u003e= 7**\n-   [openssl](https://secure.php.net/manual/en/book.openssl.php)\n\n## Installation:\n-   Best if imported as a Git submodule using [`git submodule add git://github.com/shgysk8zer0/phpcrypt.git`](https://git-scm.com/book/en/v2/Git-Tools-Submodules)\n-   Use [`spl_autoload`](https://secure.php.net/manual/en/function.spl-autoload-register.php) for autoloading\n\n## Provided classes:\n-   [`PublicKey`](https://github.com/shgysk8zer0/phpcrypt/blob/master/publickey.php)\n-   [`PrivateKey`](https://github.com/shgysk8zer0/phpcrypt/blob/master/privatekey.php)\n-   [`KeyPair`](https://github.com/shgysk8zer0/phpcrypt/blob/master/keypair.php)\n-   [`FormSign`](https://github.com/shgysk8zer0/phpcrypt/blob/master/formsign.php)\n\n## Provided traits:\n-   [`Traits\\KeyPair`](https://github.com/shgysk8zer0/phpcrypt/blob/master/traits/keypair.php)\n-   [`Traits\\AES`](https://github.com/shgysk8zer0/phpcrypt/blob/master/traits/aes.php)\n-   [`Traits\\Password`](https://github.com/shgysk8zer0/phpcrypt/blob/master/traits/password.php)\n\n## Provided interfaces:\n-   [`Interfaces\\Key`](https://github.com/shgysk8zer0/phpcrypt/blob/master/interfaces/key.php)\n\n### Example code:\n```php\n\u003c?php\nset_include_path('/path/to/classes_dir/' . PATH_SEPARATOR . get_include_path());\nspl_autoload_register('spl_autoload');\n\n$keys = new \\shgysk8zer0\\PHPCrypt\\KeyPair(PUBLIC_KEY, PRIVATE_KEY, PASSWORD);\n\n$encrypted = $keys-\u003eencrypt(MESSAGE);\n$decrypted = $keys-\u003edecrypt($encrypted);\n$sig       = $keys-\u003esign($encrypted);\n$valid     = $keys-\u003everify($encrypted, $sig);\n$matches   = MESSAGE === $decrypted;\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgysk8zer0%2Fphpcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshgysk8zer0%2Fphpcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgysk8zer0%2Fphpcrypt/lists"}