{"id":36371772,"url":"https://github.com/blar/openssl-php","last_synced_at":"2026-01-11T14:01:46.053Z","repository":{"id":20223118,"uuid":"23494879","full_name":"blar/openssl-php","owner":"blar","description":"OpenSSL for PHP","archived":false,"fork":false,"pushed_at":"2019-09-13T17:00:08.000Z","size":55,"stargazers_count":12,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-16T10:07:17.222Z","etag":null,"topics":["openssl","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://www.paypal.me/blar"}},"created_at":"2014-08-30T15:43:05.000Z","updated_at":"2024-05-18T06:23:57.000Z","dependencies_parsed_at":"2022-08-31T12:40:09.389Z","dependency_job_id":null,"html_url":"https://github.com/blar/openssl-php","commit_stats":null,"previous_names":["blar/openssl-php","blar/openssl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blar/openssl-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blar%2Fopenssl-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blar%2Fopenssl-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blar%2Fopenssl-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blar%2Fopenssl-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blar","download_url":"https://codeload.github.com/blar/openssl-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blar%2Fopenssl-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28306985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"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":["openssl","php"],"created_at":"2026-01-11T14:01:03.527Z","updated_at":"2026-01-11T14:01:46.005Z","avatar_url":"https://github.com/blar.png","language":"PHP","funding_links":["https://www.paypal.me/blar"],"categories":[],"sub_categories":[],"readme":"[![License](https://poser.pugx.org/blar/openssl/license)](https://packagist.org/packages/blar/openssl)\n[![Latest Stable Version](https://poser.pugx.org/blar/openssl/v/stable)](https://packagist.org/packages/blar/openssl)\n[![Build Status](https://travis-ci.org/blar/openssl.svg?branch=master)](https://travis-ci.org/blar/openssl)\n[![Coverage Status](https://coveralls.io/repos/github/blar/openssl/badge.svg?branch=master)](https://coveralls.io/github/blar/openssl?branch=master)\n[![Dependency Status](https://gemnasium.com/blar/openssl.svg)](https://gemnasium.com/blar/openssl)\n[![Flattr](https://button.flattr.com/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=Blar\u0026url=https%3A%2F%2Fgithub.com%2Fblar%2Fopenssl)\n\n# OpenSSL for PHP\n\n## Examples\n\n### Private Key\n\n#### Create a new private key\n\n    $generator = new KeyGenerator();\n    $privateKey = $generator-\u003egenerate();\n\n#### Create a new private key with 2048 bit\n\n    $generator = new KeyGenerator();\n    $generator-\u003esetBits(2048);\n    $privateKey = $generator-\u003egenerate();\n\n#### Load an existing private key from file\n\n\t$privateKey = PrivateKey::loadFromFileName('privatekey.pem');\n\n### Encrypt data with the private key.\n\n    $encrypted = $privateKey-\u003eencrypt('Hello World');\n\n### Get public key from private key.\n\n    $publicKey = $privateKey-\u003egetPublicKey();\n\n### Decrypt data with the public key\n\n    $publicKey-\u003edecrypt($encrypted);\n    \n## Installation\n\n### Dependencies\n\n[Show dependencies of blar/openssl on gemnasium](https://gemnasium.com/blar/openssl)\n\n### Installation per Composer\n\n    $ composer require blar/openssl\n\n### Installation per Git\n\n    $ git clone https://github.com/blar/openssl.git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblar%2Fopenssl-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblar%2Fopenssl-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblar%2Fopenssl-php/lists"}