Java encryption Technology (IV)

Source: Internet
Author: User

Next we introduce the typical asymmetric encryption algorithm--rsa

Rsa

This algorithm appeared in 1978, it is the first algorithm that can be used both for data encryption and digital signature. It is easy to understand and operate, but also very popular. The name of the algorithm is named after the inventor: Ron Rivest, Adishamir and Leonard Adleman.

The main feature of this encryption algorithm is the change of key, we see that des has only one key. The equivalent of a key, if lost, the data is not safe. RSA also has two keys, the public key and the private key. Digital signatures are also supported. The significance of digital signature is to verify the data transmitted over it. Ensure that data is not modified in the transmission engineering.

Process Analysis:

Party a establishes the key pair, publishes the public key to party B, and retains the private key.

Party A uses the private key to encrypt the data, and then with the private key to the encrypted data signature, send to party B signed and encrypted data; Party B uses the public key, signature to verify that the data to be decrypted is valid, and if the public key is used to decrypt the data effectively.

Party B uses the public key to encrypt the data, sends the encrypted data to party A, the party a obtains the encrypted data, decrypts through the private key.

Follow the steps above to give the sequence diagram as follows:

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.