编程中的http和https有什么区别 [英] What is the difference between http and https in programming

查看:111
本文介绍了编程中的http和https有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只知道"s"代表安全",用户切勿在仅使用http的网站上输入关键信息.但是我真的很想知道这两个协议对我的编程有什么影响,例如:

I just knew that the "s" stands for "Secure", and a user should never enter critical information on a website that use http only. But I really want to know what do these two protocols affect my programming, e.g:

  • 某些网站如何获得"https",而有些却没有(或者我不知道如何打开和关闭此功能).这是否意味着我必须在某个地方进行注册?

  • How do some website got the "https" and some do not (or maybe how they turn on and off this feature, that I don't know). Does it mean I must register it somewhere?

我心想,http中的通讯未加密,虽然可能在https中进行了某些加密,这是正确的吗?

I thought to myself that communication in http is not encrypted, while some encryption may take place in https, is this correct?

并且由于加密(如果有)过程是由浏览器完成的,因此,我的服务器端代码与"http"或"https"无关,这是正确的吗?

And because the encryption (if any) process is done by the browser, as a result, my server-side code has nothing to do with "http" or "https", is it correct?

是否有一种方法可以强制用户仅使用https?

Is there a way to force user to use https only?

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆