PHPackages                             sy-records/php-rsa - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. sy-records/php-rsa

ActiveLibrary[Security](/categories/security)

sy-records/php-rsa
==================

A PHP class that uses RSA algorithm for encryption and decryption.

v1.1(7y ago)158Apache-2.0PHPPHP &gt;= 5.4.0

Since Jul 22Pushed 7y agoCompare

[ Source](https://github.com/IhadPHP/php-rsa)[ Packagist](https://packagist.org/packages/sy-records/php-rsa)[ RSS](/packages/sy-records-php-rsa/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

php-rsa
=======

[](#php-rsa)

A PHP class that uses RSA algorithm for encryption and decryption.

Before looking at the example, you need to generate the public and private keys of the RSA.

If you don't know how to generate RSA public and private keys, read this blog post: [How does PHP use OpenSSL to generate the public and private keys needed for RSA encryption and decryption?](https://qq52o.me/2396.html)

Installation
------------

[](#installation)

You can install the package using composer.

```
composer require sy-records/php-rsa -vvv
```

Usage
-----

[](#usage)

If you want to use the instantiation method, please check the following.

```
