This article is a mirror article of machine translation, please click here to jump to the original article.

View: 7859|Reply: 3

[Source] Java implements DES data encryption and decryption

[Copy link]
Posted on 2021-12-6 09:26:48 | | | |
DES vs. RSA

The RSA algorithm has long keys and good security, but the computational intensity of encryption is large, and the slow encryption speed limits its application. In order to reduce the amount of computation, the traditional encryption method is often combined with the public key encryption method when transmitting information, that is, the information is encrypted with the improved DES dialogue key, and then the RSA key is used to encrypt the conversation key and message summary. After receiving the information, the other party decrypts it with a different key and can check the information summary.

The application of DES combined with RSA makes their advantages and disadvantages complementary, i.eDES encryption is fast and suitable for encrypting long packets, which can be used to encrypt plaintext;RSA encryption is slow and secure, applied to the encryption of DES keys, which solves the problem of DES key allocation.

review

RSA generates public and private keys, as well as encryption and decryption
https://www.itsvse.com/thread-2470-1-1.html

First, introduce the hutool package pom.xml add the following dependencies:

The Java code is as follows:

The renderings are as follows:
---------------- generate DES keys---------------------
The key is: 4c32753497fb730d
Encrypted string: cc1f9d93139c3786aec4d922f0f73aedc3bebb2f8b7a5b2a
Decrypted string: itsvse encryption test








Previous:Win10 Home Chinese Edition Enables Remote Desktop (Solves the Problem of Castration)
Next:WeChat Pay JSAPI URL of the current page is not registered for the solution
 Landlord| Posted on 2021-12-6 10:14:22 |
Java DES encryption


.NET/C# DES decryption



The key is: c80d680b94b54ffd
25a69176a84cb7c1e2b7572575fd7479eaeed48f23a7a73d
itsvse.com Testing

 Landlord| Posted on 2021-12-6 10:23:35 |
.NET/C# DES encryption and decryption



Posted on 2021-12-26 16:54:01 |
Let's take a look again
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com