谢谢回复,尝试后仍然返回的 EVP_DecryptFinal_ex failed
key: 123456789abcdefg
data = "{name:123}"
java 加密后base64数据:"G9NZGs9jwPIvSVGXpJ/KKh6l23AR/6Ws2L4=";
iv做base64获取到值: "+xbxp1L1omX8vYkd";
lua 解密后任然有EVP_DecryptFinal_ex failed
local data = "G9NZGs9jwPIvSVGXpJ/KKh6l23AR/6Ws2L4="
local vi = "+xbxp1L1omX8vYkd"
local data_base64 = ngx.decode_base64(data)
local iv_base64 = ngx.decode_base64(vi)
local aes_default = aes:new("123456789abcdefg", nil, aes.cipher(128,"gcm"), {iv=iv_base64})
local decrypted, err = aes_default:decrypt(data_base64, iv_base64)