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 #