Of course, this is really a broad and deep subject, it just depends on how deep are you willing to dive into. ;)
Algorithms Preferences
1. Rijndael (strongest)
2. TripleDES (strong)
3. DES, RC2 (weak, please do not use if not necessary)
Rijndael Encryption/Decryption
- Algorithm : RijndaelManaged (C#)
- Mode : CBC
- Padding Mode : PKCS7
- Key : 32 ASCII chars (32 bytes / 256 bits)
- IV : 16 ASCII chars (16 bytes / 128 bits)
- Same as AES-256
- To use RijndaelManaged as AES (or AES compliant):
- Mode : CBC
- Key Size : 128 / 192 / 256 bits (default 256 bits, means AES-256)
- Block Size : 128 bits (default)
- The Differences Between Rijndael and AES.
TripleDES Encryption/Decryption
- Algorithm : TripleDESCryptoServiceProvider (C#)
- Mode : CBC
- Padding Mode : PKCS7
- Key : 24 ASCII chars (24 bytes / 192 bits)
- IV : 8 ASCII chars ( 8 bytes / 64 bits)
If you find this post helpful, would you buy me a coffee?
No comments:
Post a Comment