PHPackages                             lyhiving/easyrsa - 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. lyhiving/easyrsa

ActiveLibrary[Security](/categories/security)

lyhiving/easyrsa
================

Simple and secure asymmetric encryption powered by PHPSecLib

V0.1.1(4y ago)06MITPHPCI failing

Since Feb 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lyhiving/easyrsa)[ Packagist](https://packagist.org/packages/lyhiving/easyrsa)[ RSS](/packages/lyhiving-easyrsa/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

EasyRSA
=======

[](#easyrsa)

[![Build Status](https://camo.githubusercontent.com/00acab2eec4b14c23392f0e0cd938dfe284b16b6b06b425ad4237bf3b4a25b05/68747470733a2f2f7472617669732d63692e6f72672f6c79686976696e672f456173795253412e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lyhiving/EasyRSA)

Simple and Secure Wrapper for [phpseclib](https://github.com/phpseclib/phpseclib).

Base on [paragonie/EasyRSA](https://github.com/paragonie/EasyRSA).

What change
-----------

[](#what-change)

1. Limit 2048 bit to 1024 bit.
2. Compatible with Wechat RSA.

Important!
----------

[](#important)

For better security, you want to use [libsodium](https://pecl.php.net/package/libsodium), not EasyRSA.

Motivation
----------

[](#motivation)

Although the long-term security of RSA is questionable (at best) given the advances in index calculus attacks, there are many issues with how RSA is implemented in popular PHP cryptography libraries that make it vulnerable to attacks *today*.

Thanks to the folks who developed [phpseclib](https://github.com/phpseclib/phpseclib), it's possible to use secure RSA in PHP. However, it's not user-friendly enough for the average PHP developer to use to its full potential. So we took it upon ourselves to offer a user-friendly interface instead.

EasyRSA is MIT licensed and brought to you by the secure PHP development team at [Paragon Initiative Enterprises](https://paragonie.com).

How to use this library?
------------------------

[](#how-to-use-this-library)

`composer require lyhiving/easyrsa`

### Generating RSA key pairs

[](#generating-rsa-key-pairs)

You can generate 2048-bit keys (or larger) using EasyRSA. The default size is 2048.

```
