PHPackages                             tinyada/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tinyada/rsa

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tinyada/rsa
===========

RSA Package for Laravel5

v1.0.9(8y ago)93912[1 issues](https://github.com/TinyAda/RSA/issues)MITPHPPHP &gt;=5.5.9

Since Sep 16Pushed 8y ago2 watchersCompare

[ Source](https://github.com/TinyAda/RSA)[ Packagist](https://packagist.org/packages/tinyada/rsa)[ RSS](/packages/tinyada-rsa/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (11)Used By (0)

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

[](#installation)

Laravel 5.0.0 or later is required.

To get the latest version of Laravel Markdown, simply require the project using Composer:

```
$ composer require tinyada/rsa

```

Or you can add following to `require` key in compser.json.

```
"tinyada/rsa": "~1.0"
```

then run

```
$ composer update

```

Next, You should need to register the service provider. Open up `config/app.php` and add following into the `providers` key.

```
TinyAda\RSA\RSAServiceProvider::class,
```

And you can register the RSA Facade in the `aliases` of `config/app.php` if you want.

```
'RSA' =>  TinyAda\RSA\RSA::class,
```

Configuration
-------------

[](#configuration)

To get started, you need to publish all vendor assets using following command.

```
$ php artisan vendor:publish --provider="TinyAda\RSA\RSAServiceProvider"

```

This will create a config file named `config/rsa.php` which you can configure RSA as you like.

Usage
-----

[](#usage)

首先，你要使用RSATool2生成rsa秘钥对

Then configure the in your `.env` file because you'd better not make them public.

Add following to `.env`.

```
RSA_PRIVATE_EXP=2C3FDBF70E3F8959BE79DFBE1EF93C8891AE79EBD665C965D545CC3B30D0F04716607ADFD5550FB9D03E050BF46149DD4BB492F863F6C9A0857594E5368E7B93FE5DAD6394997773B548ED357252430BE8724B02007A64E0EEF3F78EF2618FECE452454B4511C1938C6E11B5D0438ADEDC19B4689BDF5285FA93F4DA37EDA659
RSA_PUBLIC_EXP=10001
RSA_MODULUS=97D0B8B70B3637D26E884C7185B6C42C0A7E81D03D90032860014E8547EA5B81E5FEAD35509C2BD5DD5066A1528B687CDF231F21BB36157CB44EF0E4BBC7F4ACAE75AC8BB0B0B9CBF4C678E605D0A227E80A635212967779AD31FE7CF73421A9B1A74E1290794590ABBC905D18490E54019FAE64BA9E1963B318938F6D260CE1

```

php

```
#加密
$ciphertext = RSA::encrypt($plaintext);
#解密
RSA::decrypt($ciphertext);
```

Contribution
------------

[](#contribution)

If you find something wrong with this package, you can send an email to `mradxz@gmail.com`

Or just send a pull request to this repository.

Pull Requests are welcome.

Author
------

[](#author)

[Mradxz](http://www.mradxz.com) , from Beijing China

License
-------

[](#license)

Laravel RSA is licensed under [The MIT License (MIT)](https://github.com/TinyAda/RSA/blob/master/LICENSE).

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~74 days

Total

10

Last Release

3280d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4101444?v=4)[Mradxz](/maintainers/Mradxz)[@Mradxz](https://github.com/Mradxz)

---

Top Contributors

[![Mradxz](https://avatars.githubusercontent.com/u/4101444?v=4)](https://github.com/Mradxz "Mradxz (14 commits)")

---

Tags

laravelrsatinyada

### Embed Badge

![Health badge](/badges/tinyada-rsa/health.svg)

```
[![Health](https://phpackages.com/badges/tinyada-rsa/health.svg)](https://phpackages.com/packages/tinyada-rsa)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2085.6k29](/packages/ronasit-laravel-helpers)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[creasi/laravel-nusa

A Laravel package that aim to provide Indonesia' Administrative Data

997.9k2](/packages/creasi-laravel-nusa)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
