We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
here is the lua code
local aes = require 'resty.aes' local cipher = aes:new('0123456789123456', nil, aes.cipher(128, 'ecb')) print(ngx.encode_base64(cipher:encrypt('foobar')))
the output should be rTeNAHEZtzsyn1dDAujGgQ==
rTeNAHEZtzsyn1dDAujGgQ==
blow is my php code
var_dump(base64_encode(openssl_encrypt('foobar', 'aes-128-ecb', '0123456789123456', OPENSSL_RAW_DATA)));
the output should be AIIiZT3RO/bkseLE0Mcopg==
AIIiZT3RO/bkseLE0Mcopg==
how can i get the lua result with php code. pls help me, thanks.
The text was updated successfully, but these errors were encountered:
local cipher = aes:new('0123456789123456', nil, aes.cipher(128, 'ecb'),{ iv ='\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'})
Sorry, something went wrong.
No branches or pull requests
here is the lua code
the output should be
rTeNAHEZtzsyn1dDAujGgQ==
blow is my php code
the output should be
AIIiZT3RO/bkseLE0Mcopg==
how can i get the lua result with php code. pls help me, thanks.
The text was updated successfully, but these errors were encountered: