openresty/lua-resty-string

Can decrypt only pass in binary?

condingyz opened this issue · 1 comments

Can decrypt only pass in binary?

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?