The last blog about how to play the hash algorithm, but that article did not explain clearly. This blog post I will try to make the things that are not explained clearly. Of course, the theme of this article is to play symmetric encryption.
. NET of symmetric encryption technology There are mainly such several: Des,aes,rijndael,tripledes (3DES). Now, let's play around with them! As with the previous blog post, first create an interface: "Iencryptanddecrypt", then create the corresponding class for Des,aes,rijnael,tripledes (3DES) and implement the interface "Iencryptanddecrypt". They result in the following figure:
In this way, we can encrypt and decrypt the data by simply calling the method "Encrypt" and "Decrypt" in the interface Iencryptanddecrypt in later programming. Of course, to achieve such a desire we have to continue to work, the current goal is to find a qualified lead for them, so that if we want to work with des can be directly to the lead to say, rather than the need to find our DES. Let's take a look at our lead: