On Fri, Mar 9, 2012 at 9:24 AM, lhmwzy <
lh...@gmail.com> wrote:
>
http://wiki.nginx.org/HttpLuaModule中,已经有
>
> 7.43 ngx.crc32_short
> 7.44 ngx.crc32_long
> 7.45 ngx.hmac_sha1
> 7.46 ngx.md5
> 7.47 ngx.md5_bin
> 7.48 ngx.sha1_bin
>
> 这几个算法了,与lua-resty-string中的重复了不少?
>
lua-resty-string 提供的 md5/sha1 的接口相比 ngx_lua 中的 API 通用性要更好,可以用于增量计算哈希值,所以适用于流式处理大数据。未来不会再向 ngx_lua 中添加更多的这种类型的 API(但也不会删除现有的),而尽量由外部独立的 Lua 模块来提供。
Best regards,
-agentzh