Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6333959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:33:59+00:00 2026-05-24T18:33:59+00:00

I just read about the Stanford Javascript Crypto Library ( jsfiddle example ) which

  • 0

I just read about the Stanford Javascript Crypto Library (jsfiddle example) which supports SHA256, AES, and other standard encryption schemes entirely in javascript. The library seems very nifty, but I don’t know of a reasonable use case for it.

As some questions have already pointed out, client side encryption is not a safe way to pass secure data to a server. HTTPS should be used instead. So, are there any projects that would benefit from or require client side encryption?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:33:59+00:00Added an answer on May 24, 2026 at 6:33 pm

    Use Case 1

    How about local storage? You might want to store some data, but encrypt it so that other users of the computer cannot access it?

    For example:

    • User connects to server over HTTPS.
    • Server authenticates user.
    • Server serves an encryption password specific to this user.
    • User does some stuff locally.
    • Some data is stored locally (encrypted with the password).
    • User wanders off
    • User comes back to site at later stage.
    • User connects over HTTPS.
    • Server authenticates user.
    • Server serves the user’s encryption password.
    • Client-side JS uses encryption password to decrypt local data.
    • User does something or other locally with their now-decrypted, in-memory local data.

    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…

    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.

    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.

    There’s quite probably a better applied example…

    I don’t know of any existing project which use this technique.

    Use Case 2

    How about for performance improvements over HTTPS, facilitated via password sharing?

    For example:

    • User connects to server over HTTPS.
    • Server authenticates user.
    • Server serves an encryption password specific to this user.
    • Server then redirects to HTTP (which has much less of an overhead than HTTPS, and so will be much better in terms of performance).
    • 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.

    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.

    Use Case 3

    Host proof storage. 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 lastpass.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recall I have read about a parser which you just have to feed
I've just read tutorial about enums and have one question. I've studied example: public
I just read about mysql's SQL_CALC_FOUND_ROWS and FOUND_ROWS() which helps you get the total
I just read about the java 2 javascript parser and the demo with scala.
I just read on Wikipedia about elementary abelian groups which appear to be related
I just read about the breadth-first search algorithm in the Introduction to Algorithms book
I just read about HTML 5's WebSocket interface. How can I start trying this?
I just read this post about why new-line warnings exist, but to be honest
I just started to read about this new technology... Does someone have some knowledge
I just read Spolsky's last piece about Distributed vs. Non-Distributed version control systems http://www.joelonsoftware.com/items/2010/03/17.html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.