Skip to content
cipher of sha1/sha256/sha224/sha512/sha384 md5 hmac aes 3des pbkdf2 rsa digest implement by ngx_lua.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lualib
nginx/conf
test
README.md

README.md

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"
You can’t perform that action at this time.