An encrypted message can be read only by the person who has the description key and when you open your application, it is assigned to you at the same time, only then you and the user to whom you send the message can read the same and the rest of them. Where the message is stored, the message is also encrypted.
For example, suppose you sent a message to your friend “How are you?” Then only you and your friend will see the decrypted ie the original message.
Original message: “how are you ?”
encrypted message :”$2y$10$OIj1ewZQpU3xXOAciWBEzOMfnTvFSQRJMQBqv446m4/Slj4X3S5pe”
The whole process of encryption and decryption is also called cryptography, the information shared between any two human beings should not be stolen by any third person to read this information or change that information. Cryptography techniques to prevent this. has been put into use. Let us tell you that today e-commerce or online banking is safe only because of the technology of cryptography and there are different types of cryptography too.
types of encryption
In symmetric encryption, there is only one key to encrypt and decrypt and due to having the same key, the user encrypting the data in this process has to share the decrypt key with every user to whom he sends the information, that is why it is shared. Also called encryption.
In asymmetric encryption, both the encryption key and the decryption key are different, one key is for encryption and the other key is for decryption, so in the process of encryption, the user keeps the encryption key with himself and the decryption key is publicly shared with all those users. Shares to whom he sends that information. This process of encryption is also called Public Key Encryption.