PHPackages                             tornado/simple-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. tornado/simple-rsa

ActiveLibrary

tornado/simple-rsa
==================

Easy to use and integrate API for using RSA encrypted values during HTTP communication.

04JavaScript

Since Feb 22Pushed 7y agoCompare

[ Source](https://github.com/octoyoung/simple-rsa)[ Packagist](https://packagist.org/packages/tornado/simple-rsa)[ RSS](/packages/tornado-simple-rsa/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

RSA Framework for Browser-Server
================================

[](#rsa-framework-for-browser-server)

A simple framework for RSA encryption of form field values in browser - server communication using Javascript and PHP.

Useage
------

[](#useage)

### Requirements

[](#requirements)

You will need a server with PHP 5.3 installed and a web browser that does not choke on more complicated javascript code.

### Installation

[](#installation)

Install via composer

```
composer require tornado/simple-rsa

```

Now you can create a key pair like this:

```
require 'vendor/autoload.php';

$key = \RSA\KeyPair::createNew();
```

On the client side, include the rsa.js file (or the rsa.min.js file if you want to keep it small).

```

```

You can *autoload* the rsa scripts using the `JavascriptHelper::getFrontendUrl` function

```
