Displaying 1 result from an estimated 1 matches for "aeshelper".
Did you mean:
pageshelper
2013 Feb 28
1
how to use before_filter to decrypt post data
hello, everybody.
in ror, we can add a after_filter to a controller.
def aes_encrypt
response.body = AesHelper.aes_encrypt(response.body)
end
after_filter :aes_encrypt
and all action''s repsonse int the controller can be encrypt.
and my question is , how to decrypt data use before_filter, or anything
else.
ex: i want to post json data to /usr/register, the json data is
{"name"...