Recently, I encountered an AES encryption algorithm that needs to be implemented in Java, Python, and PHP. In fact, it is not very complicated in nature, but the parameter adjustment is quite troublesome. I found some reference materials and finally got it. The actual code is as follows: Main features The three languages of JAVA, […]
Tag: encryption
[Use hutool to simply demonstrate the front-end and back-end encryption and decryption processes]
1. Process: ① The front end uses AES to encrypt the data, encrypts the AES KEY with RSA, and finally uses SM4 to encrypt the data structure and sends it to the back end. ② The backend uses the agreed SM4 encrypted seed to decrypt the request data structure; uses the RSA private key to […]
Three steps to implement Java’s SM2 front-end encryption and back-end decryption
Qin medicine is like poison, and there is no cure. Without further ado, let’s first introduce the js file download link and jsp front-end code that need to be used. Step 1: Download two necessary js files – crypto-js.js, sm2.js. Their download links are as follows ↓ (This webpage will be very stuck if you […]
Django+MySQL data desensitization and encryption access
1. Overview In the Django project, desensitizing the user name and password registered by the front-end client (after encrypting it) and storing it in the target database MySQL can be achieved through the following steps: Install the necessary libraries: Make sure that password hashing libraries such as bcrypt or passlib are installed in the current […]
Spring Boot interface data encryption and decryption, so easy!
Bucai Chen Coder Technology Column 2023-11-09 09:01 Published in Zhejiang Included in the collection #Spring Boot Advanced 99 Hello everyone, I am Bucai Chen~ Today’s article talks about interface security issues, involving interface encryption and decryption. After discussing external demands with students on products and front-end, we sorted out relevant technical solutions. The main demand […]
RSA encryption and decryption algorithm implementation
This code is a large-scale RSA encryption and decryption. The selection of q and p uses pseudo-randomly generated large numbers and performs primality testing; the three characters in the plaintext are divided into blocks, and the characters in the block are not satisfied. Three are filled, and the filling scheme used is PKCS#7 filling. #define […]
Use of RSA encryption (front and back ends)
Public key (publicKey) encryption, private key (privateKey) decryption. Cannot be reversed, private key (privateKey) encryption, public key (publicKey) decryption. To put it bluntly, both the front and back ends need to use the public key (publicKey) for encryption and the private key (privateKey) for decryption. Introducing the front-end JS library: jsencrypt.js npm install jsencrypt Use […]
Springboot interface encryption example (2)
RESTUDY A wolf on the road 2023-10-20 17:55 Published in Beijing Included in the collection #Interface Encryption 2 The previous article introduced interface encryption and provided the corresponding project source code (please message me privately if necessary). It uses RSA encryption and decryption. Although it is highly secure, the encryption and decryption speed is slow. […]
RSA file encryption implemented in C language
This article was originally an open source implementation of Computer System Principle Experiment 2 of Shandong University Since the score for the Principles of Computer Systems experiment is based on the difficulty of the encryption algorithm, and encryption algorithms are obviously not the focus of Principles of Computer Systems, my implementation is open sourced for […]
Nginx implements tcp proxy and supports TLS encryption experiment
Nginx source code compilation Regarding the construction and configuration of nginx, please refer to the author’s previous article: Real-time streaming media server construction test (nginx + rtmp)_How to test online whether the streaming media rtmp is successfully built – the first half of the CSDN blog; the only change is the compilation parameters (Add the […]