A method for secure transmission of web page data, the method comprising: receiving from a remote server , by a proxy server, a web page requested by a user device; analyzing, by a processor of the proxy server, the received web page to identify code of elements of the web page; selecting one or more identified elements of the web page for encryption, the selected one or more identified elements including web page elements used for data entry and web page elements containing confidential user data; encrypting, by the processor, the code of the selected one or more identified elements; generating, by the processor, a script containing the encrypted code of the selected one or more identified elements and code for enabling decryption of the encrypted code when executed on the user device; modifying, by the processor, the web page by replacing in the web page the code of the selected one or more identified elements with the script containing the encrypted code and the code for enabling decryption; and transmitting, by the proxy server, the modified web page to an application on the user device; wherein encrypting the code of one or more selected elements of the web page includes using an asymmetric encryption method, and wherein encrypting the code of the one or more selected elements of the web page using an asymmetric encryption method includes encrypting the code of the one or more selected elements of the web page using a public key of the application on the user device, and wherein the script contains a public key of the web server, the public key of the web server is to be used by the application on the user device to encrypt user input data on the web page. receiving from a remote server , by a proxy server, a web page requested by a user device; analyzing, by a processor of the proxy server, the received web page to identify code of elements of the web page; selecting one or more identified elements of the web page for encryption, the selected one or more identified elements including web page elements used for data entry and web page elements containing confidential user data; encrypting, by the processor, the code of the selected one or more identified elements; generating, by the processor, a script containing the encrypted code of the selected one or more identified elements and code for enabling decryption of the encrypted code when executed on the user device; modifying, by the processor, the web page by replacing in the web page the code of the selected one or more identified elements with the script containing the encrypted code and the code for enabling decryption; and transmitting, by the proxy server, the modified web page to an application on the user device; wherein encrypting the code of one or more selected elements of the web page includes using an asymmetric encryption method, and wherein encrypting the code of the one or more selected elements of the web page using an asymmetric encryption method includes encrypting the code of the one or more selected elements of the web page using a public key of the application on the user device, and wherein the script contains a public key of the web server, the public key of the web server is to be used by the application on the user device to encrypt user input data on the web page. <EOS>