Encryption: simulate SSL in javascript and python

Because of China, the Great Firewall blocked the https app appengine port. Therefore, I want to simulate Secure Socket Layer using javascript and python to protect the information of my users, will not be captured by these ISPs and GFW.

My plan:

  • Shake hands:

The browser request server, the server will generate the encryption key k1 and decrypt the key k2, send k1 to the browser. The browser generates the encryption key k3 and decrypts the key k4, sends k3 to the server.

  • Overview:

During the session, the browser encrypts the data from k1 and sends it to the server, the server decrypts using k2. the server encrypts data from k3 and responds to the browser, the browser decrypts from k4.

Please find out my mistake.

If this is correct, my question is

  • how to create a key pair in javascript and python, are there some libraries?
  • javascript python, ?
+5
4

, SSL SSL , "--". , , , .

, , SSL. . , , , (), . AFAIK, JavaScript. (, https) .

+2

/, , . , , , . , : - , .

, , , , . . , , , (, - ), , ( CA - ) ) , . HTTP; , , , , , . SSL , .

, Javascript. , - Turing, - . , GPG...

( , , , ).

+1

There is a big problem if security is really a big concern: your algorithm will be transmitted without protection. Can you trust a customer at all? Can a client trust a server at all?

0
source

All Articles