Detailed. NET encryption and decryption algorithm (5) Play symmetric encryption

Source: Internet
Author: User
Tags decrypt

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:

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.