[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
<>一、HTTP协议与HTTPS协议的区别
HTTP协议与HTTPS协议的区别:
1. 安全角度:
*
HTTP协议 属于“明文传输协议”,是以“明文”的方式在网络中传输数据的;
*
而 HTTPS协议 属于“加密传输协议”,HTTPS协议中传输的数据是需要经过TLS/SSL加密后才进行传输的,因此HTTPS在传输数据方面具有较高的安全性。
2. 端口角度:
*
HTTP协议的端口是:80
*
HTTP协议的端口是:443
3. 加密与证书角度:
*
HTTP协议 使用明文传输数据,不进行加密处理,不需要向服务端申请证书;
*
HTTPS协议 在TCP三次握手阶段之后,需要进行SSL的handshake,协商加密使用的对称加密密钥,还需要向服务端申请证书,浏览器端安装对应的根证书。
<>二、HTTP的优点与缺点
HTTP优点: 简单、灵活、易扩展、应用广;
HTTP缺点: 以明文的方式在网络中传输数据,通信内容容易被窃听、篡改、劫持,无法保证数据的完整性和准确性,因此使用HTTP协议传输数据不安全。
<>三、HTTPS的优点与缺点
HTTPS的优点:
1)HTTPS协议在传输数据过程中,使用密钥对传输的数据进行加密,安全性较高。
2)HTTPS协议可以对用户和服务器进行认证,确保了数据传送的完整性和准确性。
HTTPS 的缺点:
1) HTTPS协议握手阶段延时较高: 由于在进行HTTP会话前,还需要进行SSL握手,所以HTTPS协议握手阶段延时会适当增加。
2) HTTPS协议部署成本高:
首先,HTTPS协议需要购买CA证书,通过证书来验证自身的安全性;其次,HTTPS属于加密传输协议,需要进行加密、解密的计算与操作,会占用一定数量的CPU资源,因此,需要的服务器配置、数目相对较高。