1
I am beginner in java and I am studying java web, mainly servlets and JSP. And I need to develop a web application as a college job, focused on security. For this I would like to encrypt the URL’s parameters (in GET) and also the parameters passed in the header via POST. I would like to do this manually without using HTTPS.
But the question is how this architecture would work (calling class encryption/decryption every time you enter a page). Has anyone ever done anything like this? Would you have a hint?
If you want to do this for learning purposes, there are several Javascript libraries that perform encryption, and with HTML5 there is even a native solution - Webcrypto - that offers several algorithms. In practice, however, the architecture would be complex and there are many boring details, too much to explain in an answer, to do right would require a book. HTTPS (HTTP over TLS/SSL) works because all these details have been well thought out and encryption works at the transport level, that is, everything that is transmitted, including the parameters of GET and POST, is already encrypted.
– mgibsonbr