aes加密解密算法
You can find plenty of algorithms on the Internet that provide the Encryption - Decryption functionality. One of them is the AES algorithm. AES stands for "Advanced Encryption Standard".
您可以在Internet上找到许多提供“加密-解密”功能的算法。 其中之一是AES算法。 AES代表“高级加密标准”。
The Advanced Encryption Standard was established by US National Institute of Standards and Technology in 2001. It was based; on the work of two Belgian cryptographers, Joan Daemen and Vincent Rijmen, who submitted the proposal to NIST during the selection process.
高级加密标准是由美国国家标准技术研究院于2001年建立的。 关于两位比利时密码学家Joan Daemen和Vincent Rijmen的工作,他们在选择过程中向NIST提交了该建议。
In the AES algorithm, there is a terminology we use called 'Cipher Mode'. There are different types Cipher Modes present in the algorithm. Based on your specific needs and requirements you can select the Cipher Modes. Let's have a look at what these are and how they differentiate from other cipher modes.
在AES算法中,有一种我们称为“密码模式”的术语。 算法中存在不同类型的密码模式。 根据您的特定需求和要求,您可以选择密码模式。 让我们看看它们是什么以及它们与其他密码模式的区别。
1. Electronic Code Book Mode: This mode doesn't require any feedback to be applied. You pass the plain text/data using this and and get the resulted Cipher data from it directly. The main disadvantage is that this mode will return the same cipher data on passing the same type of plain text in loop; if you pass 'Hello, World!' three times in this mode then it will return same cipher data in each iteration. That is why this mode is considered as 'Vulnerable' and not recommended for use.
1.电子密码簿模式:此模式不需要任何反馈。 您使用此方法传递纯文本/数据,然后直接从中获取生成的密码数据。 主要缺点是,此模式在循环传递相同类型的纯文本时将返回相同的密码数据。 如果您通过“你好,世界!” 在这种模式下,它将重复三次,则每次迭代将返回相同的密码数据。 这就是为什么将此模式视为“易受攻击的”而不推荐使用的原因。
2. Cipher Block Chaining Mode: This mode is required to add the feeback to modify the pre-encrypted data; with the feedback it will make each cipher data different from previous re