Skip to content

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

Notifications You must be signed in to change notification settings

gityf/ngx_cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages