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

Abandoned → [paragonie/sodium\_compat](/?search=paragonie%2Fsodium_compat)Library[Security](/categories/security)

paragonie/easyrsa
=================

Simple and secure asymmetric encryption powered by PHPSecLib

v0.6.0(5y ago)197248.8k↓27.3%34[4 issues](https://github.com/paragonie/EasyRSA/issues)1MITPHPPHP ^5.6|^7|^8CI failing

Since Nov 19Pushed 4y ago10 watchersCompare

[ Source](https://github.com/paragonie/EasyRSA)[ Packagist](https://packagist.org/packages/paragonie/easyrsa)[ RSS](/packages/paragonie-easyrsa/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (5)Versions (9)Used By (1)

EasyRSA
=======

[](#easyrsa)

[![Build Status](https://camo.githubusercontent.com/555be38dde72146aa0c57e51aca4f2a96888773cc87c7f23366629e3e6759dd9/68747470733a2f2f7472617669732d63692e6f72672f70617261676f6e69652f456173795253412e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/paragonie/EasyRSA)

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

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 paragonie/easyrsa`

### Generating RSA key pairs

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

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

```
