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: