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 8985085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:15:25+00:00 2026-06-15T21:15:25+00:00

I know everyone uses TLS/SSL as transport layer security on the web. What would

  • 0

I know everyone uses TLS/SSL as transport layer security on the web.

What would prevent me from generating let’s say keypair manually, encrypting data client-side (using JS for example) with that public key and submitting that data to my server with http’s GET/POST request?

I mean – I can just use JS library to encrypt some form data with that public key – right?

Only person who has private key can decrypt it – right? And private key would be kept on the server of course. No key warning will pop up – since transmission is a regular http request. So why I need TLS?

  • 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-06-15T21:15:26+00:00Added an answer on June 15, 2026 at 9:15 pm

    Let’s give an example of how this could go wrong. Let’s say that what you’re trying to encrypt is some form data and send it to the server. The server sends it’s public key to the client to encrypt with. The client in JavaScript encrypts this data and sends it to the server. Assuming that’s what happened you’d be okay.

    Now let’s explore how this could go wrong. With the status of switching and the like these days it is fairly hard to sniff someone else’s packets without access to the hardware. Therefore, most of the cases you are trying to avoid also allow the attacker to present a man in the middle attack. In this case the attacker could provide the client with whatever JavaScript they pleased. A clandestine way of stealing data would be to provide JavaScript that does everything that the original JavaScript does, and the also sends the unencrypted data to another server.

    This can happen in a similar fashion for data from the server being sent to the client.

    P.S. If your problem is the lack of a CA signed cert, I would suggest getting a free one from http://www.startssl.com/

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

Sidebar

Related Questions

I have been looking around and would like to know what everyone uses to
As everyone know the UINavigationController push a ViewController from Left To Right, is there
Before I start I would just like everyone know that I did indeed spend
Hello everyone and thank you for your time. I would just like to say
I know everyone is going to jump in and say No! - but can
I know that everyone uses an IDE nowadays, but I just find it simpler
Ok I know everyone is going to tell me not to use RegEx for
i hope that everyone here know the php 'variable variable' syntax: $color = 'red';
Hello everyone don't know why this code works on windows but not on linux
Sorry in advance everyone for this question as I know the cascading select boxes

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.