Skip to content

Commit

Permalink
release v0.05
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander committed Nov 7, 2018
1 parent 3196596 commit a09129c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions dist.ini
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

0 comments on commit a09129c

Please sign in to comment.