Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h3>Use Case 1</h3> <p>How about <a href="http://dev.w3.org/html5/webstorage/#dom-localstorage">local storage</a>? You might want to store some data, but encrypt it so that other users of the computer cannot access it?</p> <p>For example:</p> <ul> <li>User connects to server over HTTPS.</li> <li>Server authenticates user.</li> <li>Server serves an encryption password specific to this user.</li> <li>User does some stuff locally.</li> <li>Some data is stored locally (encrypted with the password).</li> <li>User wanders off</li> <li>User comes back to site at later stage.</li> <li>User connects over HTTPS.</li> <li>Server authenticates user.</li> <li>Server serves the user's encryption password.</li> <li>Client-side JS uses encryption password to decrypt local data.</li> <li>User does something or other locally with their now-decrypted, in-memory local data.</li> </ul> <p>This could be useful in cases where you have a fat client, with lots of (sensitive) data that needs to be used across sessions, where serving the data from the server is infeasible due to size. I can't think of that many instances where this would apply...</p> <p>It could also be useful in cases where the user of the application generates sensitive data and that data does not need to (or shouldn't) ever be sent to (or stored on) the server.</p> <p>For an applied example, you could store the user's credit card details locally, encrypted and use JS to auto-enter it into a form. You could have done this by instead storing the data server side, and serving a pre-populated form that way, but with this approach you don't have to store their credit card details on the server (which in some countries, there are strict laws about). Obviously, it's debatable as to whether storing credit card details encrypted on the user's machine is more or less of a security risk than storing it server side.</p> <p>There's quite probably a better applied example...</p> <p>I don't know of any existing project which use this technique.</p> <h3>Use Case 2</h3> <p>How about for performance improvements over HTTPS, facilitated via password sharing?</p> <p>For example:</p> <ul> <li>User connects to server over HTTPS.</li> <li>Server authenticates user.</li> <li>Server serves an encryption password specific to this user.</li> <li>Server then redirects to HTTP (which has much less of an overhead than HTTPS, and so will be much better in terms of performance).</li> <li>Because both the server and the client have the encryption password (and that password was shared over a secure connection), they can now both send and receive securely encrypted sensitive data, without the overhead of encrypting / decrypting entire requests with HTTPS. This means that the server could serve a web page where only the sensitive parts of it are encrypted. The client could then decrypt the encrypted parts.</li> </ul> <p>This use case is probably not all that worthwhile, because HTTPS generally has acceptable performance levels, but would help if you need to squeeze out a bit more speed.</p> <h3>Use Case 3</h3> <p><a href="http://en.wikipedia.org/wiki/Host_Proof_Storage">Host proof storage</a>. You can encrypt data client side and then send it to the server. The server can store the data and share it, but without knowing the client's private key, it cannot decrypt it. This is thought to be the basis for services such as <a href="http://lastpass.com/">lastpass</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload