Recent

Author Topic: CGI Application - compressed and encrypted json data  (Read 943 times)

taqtaq

  • New Member
  • *
  • Posts: 13
CGI Application - compressed and encrypted json data
« on: March 12, 2020, 02:37:09 pm »
Hello. I want to send data in json format using a CGI application, there isn't any problem with that, but the question is: Which library or function I have to use to compress  and encrypt the json data from server side?

Shorthly I need help to compress and encrypt data from server side using a Lazarus application for use it in a Javascript client.

Of course the inverse way must be equal (compress and encrypt in a client application to send to server) so I need help about wich Javascript library I can use to do that.

Thanks

zamronypj

  • Full Member
  • ***
  • Posts: 133
    • Fano Framework, Free Pascal web application framework
Re: CGI Application - compressed and encrypted json data
« Reply #1 on: March 12, 2020, 02:44:56 pm »
If they are going to be decrypted by JavaScript in client side, why bother to encrypt it?  Use https instead to avoid man in the middle attack. Also compressing response can be done on web server level such as with mod_deflate (Apache). Many browser will be able to decompress them without need for JavaScript code to decompress it.
Fano Framework, Free Pascal web application framework https://fanoframework.github.io
Apache module executes Pascal program like scripting language https://zamronypj.github.io/mod_pascal/
Github https://github.com/zamronypj

 

TinyPortal © 2005-2018