当前位置:网站首页>Interface automatic encryption and decryption
Interface automatic encryption and decryption
2022-06-21 17:02:00 【Expert of explosive liver fist】
One 、 What is interface encryption and decryption
Interface encryption : In the interface test, in order to prevent data leakage or theft, the transmitted data is encrypted and then transmitted .
Interface decryption : In the interface test, the encrypted data is restored to the original data .
Encryption and decryption website : Encryption and decryption website
Two 、 Classification of interface encryption and decryption
1. Symmetric encryption : Use the same key for encryption and decryption , Such as :DES、AES、BASE64
2. Asymmetric encryption : Two keys are required for encryption ( Public key 、 Private key ) Mutual encryption and decryption , The public key is public , There is no need to keep it secret ; The private key is held by an individual or enterprise , It must be kept in good condition . Such as :
RSA encryption algorithm : 1) Public key encryption , Private key decryption
2) Private key encryption is called digital signature , Public key decryption is called verification signature
Online bank transfer : digital signature
3. Do not consider decryption at all :
Such as :1)SHA1、SHA3…
2)MD5 encryption ( The hash algorithm , Hash algorithm )
3、 ... and 、 utilize Python Code encryption
url='http://127.0.0.1:5000/get_token'
# For the user name admin Conduct MD5 Encryption means encryption
username=hashlib.md5('admin'.encode('utf-8')).hexdigest()
# Yes, the password 123 Conduct MD5 Encryption means encryption
password=hashlib.md5('123'.encode('utf-8')).hexdigest()
data={
# Capitalize the encrypted user name and password
'username': str(username).upper()
'password': str(password).upper()
}
res=request.post(url,data=data)
print(res.json())
notes :data Parameter transfer :
Content-Type:application/x-www-form-urlencoded
json Parameter transfer :
Content-Type:application/json
requests.post On request , Whether the request is successful or not , Not determined by the front end , It's up to the back end .
边栏推荐
- 机器学习中的概念漂移(Aporia)
- Simulation Implementation of string class
- Disruptor本地线程队列_WorkProcessor异常_FatalExceptionHandler---线程间通信工作笔记004
- Pingcap was selected as the "voice of customers" of Gartner cloud database in 2022, and won the highest score of "outstanding performer"
- 站在数字化风口,工装企业如何“飞起来”
- 撰写有效帮助文档的7大秘诀
- Implementation and landing of any to any real-time voice change RTC dev Meetup
- 首批入围企业公示!年度TOP100智能网联供应商评选
- 云原生之混合云网络互联
- HUAWEI(13)——路由引入
猜你喜欢

微信小程序开发入门介绍-布局组件
Go language development code self test excellent go fuzzing usage explanation

Implementation and landing of any to any real-time voice change RTC dev Meetup

Come and watch – tpt18 new report

Wechat applet development tutorial - Introduction to text components

Necessary for data analysis: 6 steps +5 types +2 analysis methods

站在数字化风口,工装企业如何“飞起来”

机器学习中的概念漂移(Aporia)

Reinforcement learning introductory project spinning up (1) installation

VNC Viewer方式的远程连接树莓派
随机推荐
Google Play Academy 组队 PK 赛,正式开赛!
In 2022, the number of mobile banking users in Q1 will reach 650million, and ESG personal financial product innovation will be strengthened
Fidder工具使用笔记
Web page automation practice "3. in elong, hotels are accurately matched according to city + date + keyword" part 2
Wechat applet tabbar usage
[从零开始学习FPGA编程-38]:进阶篇 -语法-函数与任务
Some thoughts learned recently are attached with answers, and further study and development of knowledge are required in the future.
Cisco(59)——Hub&Spoke MPLS
Advanced performance test series 6. problem solving and application development
The database cannot be connected. I don't know what's wrong
微信小程序开发入门教程-文本组件介绍
Complete tutorial on reinstalling your computer system
成长和年龄没有必然联系
【1108. IP 地址無效化】
Wechat applet development tutorial - Introduction to text components
华为云发布桌面IDE-CodeArts
为什么要做茶叶商城小程序app开发?
How to open an account for futures agricultural products? How much is the handling charge?
【观察】微软“云+端”全面创新,让混合云更简单、更灵活、更安全
Go language development code self test excellent go fuzzing usage explanation