aSSL Secure Connection
aSSL ( Ajax Secure Service Layer ) is a libraries implements the technology similar to the SSL distributed under MIT license.
The aSSL ( Ajax Secure Service Layer ) allows the client to negotiation on a secret random 128-bit key with the server uses RSA algorithm. When the connection is established the data can be sent and receive via AES algorithm. The aSSL contains some JavaScript files and some components from server side. It allows secure connections to one or more servers.
Working of aSSL
The Browser sends a request to the server to start the process.
Then the server returns some mules of RSA module and the public components.
Then the browser generates the 128 bit key for random exchange and encrypts the key using server key and forwarded it to the server.
The server gets the encrypted 128-bit key and decrypts it with its private key. If the result is ok the server passes the session duration time to the client.
Then the browser gets the session duration time from the server and sets the timeout to alive the connection.
All the exchange is done via aSSL and the key is encrypted and decrypted via AES algorithm.