2017 © Pedro Peláez
 

library rsa

RSA Package for Laravel5

image

tinyada/rsa

RSA Package for Laravel5

  • Sunday, July 9, 2017
  • by Mradxz
  • Repository
  • 1 Watchers
  • 4 Stars
  • 365 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 11 Versions
  • 1 % Grown

The README.md

Installation

Laravel 5.0.0 or later is required., (*1)

To get the latest version of Laravel Markdown, simply require the project using Composer:, (*2)

$ composer require tinyada/rsa

Or you can add following to require key in compser.json., (*3)

"tinyada/rsa": "~1.0"

then run, (*4)

$ composer update

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

TinyAda\RSA\RSAServiceProvider::class,

And you can register the RSA Facade in the aliases of config/app.php if you want., (*6)

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

Configuration

To get started, you need to publish all vendor assets using following command., (*7)

$ 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., (*8)

Usage

首先,你要使用RSATool2生成rsa秘钥对, (*9)

Then configure the in your .env file because you'd better not make them public., (*10)

Add following to .env., (*11)

RSA_PRIVATE_EXP=2C3FDBF70E3F8959BE79DFBE1EF93C8891AE79EBD665C965D545CC3B30D0F04716607ADFD5550FB9D03E050BF46149DD4BB492F863F6C9A0857594E5368E7B93FE5DAD6394997773B548ED357252430BE8724B02007A64E0EEF3F78EF2618FECE452454B4511C1938C6E11B5D0438ADEDC19B4689BDF5285FA93F4DA37EDA659
RSA_PUBLIC_EXP=10001
RSA_MODULUS=97D0B8B70B3637D26E884C7185B6C42C0A7E81D03D90032860014E8547EA5B81E5FEAD35509C2BD5DD5066A1528B687CDF231F21BB36157CB44EF0E4BBC7F4ACAE75AC8BB0B0B9CBF4C678E605D0A227E80A635212967779AD31FE7CF73421A9B1A74E1290794590ABBC905D18490E54019FAE64BA9E1963B318938F6D260CE1

php, (*12)

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

Contribution

If you find something wrong with this package, you can send an email to mradxz@gmail.com, (*13)

Or just send a pull request to this repository., (*14)

Pull Requests are welcome., (*15)

Author

Mradxz , from Beijing China, (*16)

License

Laravel RSA is licensed under The MIT License (MIT)., (*17)

The Versions

09/07 2017

dev-master

9999999-dev

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

09/07 2017

v1.0.9

1.0.9.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

17/09 2016

v1.0.8

1.0.8.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

17/09 2016

v1.0.7

1.0.7.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

16/09 2016

v1.0.6

1.0.6.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

16/09 2016

v1.0.5

1.0.5.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

16/09 2016

v1.0.4

1.0.4.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

16/09 2016

v1.0.3

1.0.3.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

16/09 2016

v1.0.2

1.0.2.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

16/09 2016

v1.0.1

1.0.1.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada

16/09 2016

v1.0.0

1.0.0.0

RSA Package for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar Mradxz

laravel rsa tinyada