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

  • SEARCH
  • Home
  • 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 6057339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:28:39+00:00 2026-05-23T08:28:39+00:00

I am searching for a way to clientside decode RSA respectively openssl encoded messages.

  • 0

I am searching for a way to clientside decode RSA respectively openssl encoded messages.

Idea:
Special data is only stored encrypted with a public key on the server so that nobody is able to see the real data – even in case of server hacks.
An admin in the adminforce then can “open” these files by transfering them to the browser and some javascript code will decode the data so that it’ll never decrypted on the server, only on the secure clientside.
I really need it to be decoded direclty in the browser with custom javascript because these data has then to be used by some algorithms clientside in js.

Problem:
There seems to be no openssl library in javascript or i didn’t find one yet. While there are several pure js implementation of RSA they only implement the plain RSA algorithm but, plain RSA is not secure to be used as a block cipher and has some attacks like “choosen plaintext attacks”.
Does anybody know of an javascript implementation of openssl decoding, or a plugin for firefox/chrome which adds these features to the document? Or any other secure asymetric encryption that’s built into javascript?

  • 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-23T08:28:40+00:00Added an answer on May 23, 2026 at 8:28 am

    As I was pointing out in a comment to your question, the vector of attack you’re envisaging (compromised server) implies that the JavaScript is likely to be compromised too, in which case the JavaScript code running on the client shouldn’t be trusted anyway. (It would be quite easy to make the JavaScript send the deciphered data back to the server with an asynchronous request in the background: again, since the server would be under the attacker’s control, there wouldn’t be any need for tricks to circumvent same-origin policies there.)

    I would suggest going down the route of a standalone application (such as Java WebStart), perhaps signed (with a private key that’s not held on the server).

    If you’re still willing to go ahead with this sort of architecture, avoid releasing the user’s private key into the JavaScript at all cost. This could compromise the user’s private key, not just the encrypted data.

    When you use a private key in your browser for SSL/TLS client-certificate authentication, the private key isn’t exposed to any code used by the server. It’s used by the browser for the handshake, and the server gets the certificate (which is public), but the private key doesn’t go anywhere near what the HTML+JS code can see. (In fact, in OSX with Safari, the private key is used by the underlying SSL/TLS library, and not even exposed to the user process.)

    The JavaScript libraries for RSA that I’ve seen require direct use of the private key, that is, they need to be able to use the private exponent directly. That’s clearly not good if you’re in a situation you can’t trust the server.

    Being able to use a private key within the browser for RSA operations, without letting the script get hold of the private material itself would require tighter integration with the browser, in particular, some API to sign and decipher that would use these functions directly in the browser’s security mechanism, without exposing the private key material (overall, a similar approach to what PKCS#11 offers to applications using it).

    As far as I’m aware, the current Mozilla crypto JavaScript API doesn’t provide functions to decipher/sign using the browsers (it’s only for certificate request and key generation). There seems to be plans to do this, though:

    • https://wiki.mozilla.org/Privacy/Features/DOMCryptAPISpec/Latest
    • http://mozilla.ddahl.com/domcrypt/demos/demo.html

    On the IE plaform, CAPICOM should have been of interest, but it seems to be deprecated nowadays.

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

Sidebar

Related Questions

I'm searching a way to include __LINE__ as a compile-time constant in outputted messages.
I'm searching a way to avoid systematic dynamic cast in the following problem. I
I'm searching a way to detect mouse and keyboards events in C# and read
i am searching a way to get Numerical gradient from the matrix. The same
You can get underground processes by ps ux I am searching a way to
I'm searching for a way to extract all text elements from a matplotlibfigure including
I am searching for a way to use git blame through smartgit UI. Is
I'm searching for a way to auto compare an object propriety to a list
I'm searching for a way to create a menu in an iPhone app that
I was searching for a way of detecting in my C# code if the

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.