dzavalishin / ngx_cipher

cipher of sha1/sha256/sha224/sha512/sha384 md5 hmac aes 3des pbkdf2 rsa digest implement by ngx_lua.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ngx_cipher

cipher library

	require "cipher"

md5

	cipher.md5('data')

sha1

	cipher.sha1('data')

sha256

	cipher.sha256('data')

sha512

	cipher.sha512('data')

Testing

curl -g "http://127.0.0.1:8000/cipher?data=123&t=md5"
curl -g "http://127.0.0.1:8000/cipher?data=123&t=sha1"
curl -g "http://127.0.0.1:8000/cipher?data=123&t=hmac_sha1"
curl -g "http://127.0.0.1:8000/cipher?data=123&t=hmac_sha1"
curl -g "http://127.0.0.1:8000/cipher?data=123&t=md5"
curl -g "http://127.0.0.1:8000/cipher?data=123&t=sha1"
curl -g "http://127.0.0.1:8000/cipher?data=123&t=sha256"
curl -g "http://127.0.0.1:8000/cipher?data=123&t=sha512"
curl -g "http://127.0.0.1:8000/cipher?data=123&key=key&t=hmac_md5"

About

cipher of sha1/sha256/sha224/sha512/sha384 md5 hmac aes 3des pbkdf2 rsa digest implement by ngx_lua.


Languages

Language:C 98.9%Language:Lua 0.7%Language:Makefile 0.3%Language:Shell 0.1%