-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3196596
commit a09129c
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,14 @@ Status | |
|
||
This library is considered production ready. | ||
|
||
Build status: [![Travis](https://travis-ci.org/doujiang24/lua-resty-rsa.svg?branch=master)](https://travis-ci.org/doujiang24/lua-resty-rsa) | ||
Build status: [![Travis](https://travis-ci.org/spacewander/lua-resty-rsa.svg?branch=master)](https://travis-ci.org/spacewander/lua-resty-rsa) | ||
|
||
|
||
Description | ||
=========== | ||
|
||
This library requires an nginx build with OpenSSL, | ||
the [ngx_lua module](http://wiki.nginx.org/HttpLuaModule), and [LuaJIT 2.0](http://luajit.org/luajit.html). | ||
the [ngx_lua module](https://github.com/openresty/lua-nginx-module), and [LuaJIT](http://luajit.org/luajit.html). | ||
|
||
|
||
Synopsis | ||
|
@@ -137,7 +137,7 @@ Methods | |
|
||
To load this library, | ||
|
||
1. you need to specify this library's path in ngx_lua's [lua_package_path](https://github.com/chaoslawful/lua-nginx-module#lua_package_path) directive. For example, `lua_package_path "/path/to/lua-resty-rsa/lib/?.lua;;";`. | ||
1. you need to specify this library's path in ngx_lua's [lua_package_path](https://github.com/openresty/lua-nginx-module#lua_package_path) directive. For example, `lua_package_path "/path/to/lua-resty-rsa/lib/?.lua;;";`. | ||
2. you use `require` to load the library into a local Lua variable: | ||
|
||
```lua | ||
|
@@ -228,10 +228,6 @@ verify | |
Performance | ||
======== | ||
|
||
First of all, you are always recommended to cache the rsa object. | ||
|
||
<http://wiki.nginx.org/HttpLuaModule#Data_Sharing_within_an_Nginx_Worker> | ||
|
||
I got the result: | ||
``` | ||
encrypt for 50000 times cost : 2.4110000133514s | ||
|
@@ -345,6 +341,7 @@ Copyright and License | |
This module is licensed under the MIT license. | ||
|
||
Copyright (C) 2014-2014, by Dejiang Zhu (doujiang24) <[email protected]> | ||
Copyright (C) 2018-, by Zexuan Luo (spacewander) | ||
|
||
All rights reserved. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name=lua-resty-rsa | ||
abstract=RSA encrypt/decrypt & sign/verify for OpenResty/LuaJIT | ||
author=doujiang24 | ||
author=spacewander | ||
is_original=yes | ||
license=mit | ||
lib_dir=lib | ||
repo_link=https://github.com/doujiang24/lua-resty-rsa | ||
version=0.02 | ||
repo_link=https://github.com/spacewander/lua-resty-rsa | ||
version=0.05 |