openresty / lua-resty-string

String utilities and common hash functions for ngx_lua and LuaJIT
429 stars 143 forks source link

Can decrypt only pass in binary? #75

Open condingyz opened 4 years ago

condingyz commented 4 years ago

My scenario is like this: to optimize the interface, you want to process it in Lua, but the accepted parameters are encrypted by the client, so you need to decrypt it in Lua layer. Currently, the problems encountered are as follows:

aes 128 cbc with iv:decrypt(encrypted))

Can only encrypted be passed in? The parameter I received from the client is a string. How can I deal with it?