The concept of encryption and decryption and the implementation of DES encryption algorithm

Source: Internet
Author: User
Tags asymmetric encryption

Clear text: Also known as the user can directly read the information

Redaction: Ciphertext is a collection of meaningless, messy code

Encryption: Encryption is a process of converting plaintext into redact under the control of certain algorithms and keys.

Decryption: Enter a key under the control of a particular algorithm to convert ciphertext into plaintext


Encryption Algorithm Decryption Algorithm

plaintext ----------------- ciphertext ------------------ plaintext


Encryption algorithm is divided into symmetric encryption algorithm (private key algorithm) and asymmetric encryption algorithm (public key cryptography), symmetric encryption algorithm and asymmetric encryption algorithm is the difference between the symmetric encryption algorithm encryption key and decryption key is the same.

The famous encryption algorithms are: Des/3des, Idea, RC series, CAST, AES advanced data encryption, etc.


DES in block mode to encrypt the 64bit cipher block, the key is fixed 56bit, theencryption process is as follows:


input 64bit plaintext data ------ permutation function substitution ------The------ Exchange around the key control 32bit------The second substitution of inverse function -------- output ciphertext data


3DES encryption algorithm is to use 3 keys respectively to the DES algorithm execution 3 times


This article is from the "left-handed" blog, make sure to keep this source http://mofeihu.blog.51cto.com/1825994/1629022

The concept of encryption and decryption and the implementation of DES encryption algorithm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.