AES encryption and decryption algorithm used between C and C #

Source: Internet
Author: User

Purpose: The C language writes the client encrypted data, the data is sent to the C # write service side, the service side decrypts.

Ensure that both C and C # encryption and decryption AES configuration and mode have been.

Aes:

AES is a symmetric encryption algorithm, key points: Key length, clear text length, ciphertext length

Key length:

AES and Rijndael cryptography are not exactly the same (although they can be interchanged in practical applications) because the Rijndael encryption method can support a larger range of chunks and key lengths;

The block length of AES is fixed at 128 bits and the key length can be 128,192 or 256 bits;(128/8=16 256/8=32 bytes If the key uses a string, The key length must be 16 or 24 or 32 characters , one character occupies 8 bits or one byte , and the key and chunk length used by Rijndael can be an integer multiple of 32 bits, with a lower limit of 128 bits and a upper limit of 256 bits. The keys used during the encryption process are generated by the Rijndael key generation scheme.

AES encryption and decryption algorithm used between C and C #

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.