lua-resty-nettle
lua-resty-nettle copied to clipboard
how to use DES3 with ecb mod?
I try the codes below ` local ds, wk = des.new(key, "ecb", iv)
if wk then print("error, wk: ", wk) end return self:base64_encode(ds:encrypt(content)) ` and get an error: luajit: ../resty/nettle/des.lua:137: attempt to index field 'cipher' (a nil value)
Could you give me some hint please?
Oh, that is a bug it seems.
@outshow,
Oh, wait, the ecb does not use iv, so please do not specify it.
@outshow sorry for late answer, I was on summer holidays.