DES、三重 DES、AES、河豚数据加密的比较
有人比较这些加密算法的优缺点吗?
Does anyone have pros and cons together for comparing these encryption algorithms ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有人比较这些加密算法的优缺点吗?
Does anyone have pros and cons together for comparing these encryption algorithms ?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(9)
使用 AES。
更详细地说:
因此,如有疑问,请使用 AES。
请注意,分组密码是一个加密“块”(使用 AES 的 128 位数据块)的盒子。当加密可能长于 128 位的“消息”时,必须将消息分割成块,而进行分割的实际方式称为 操作模式 或“链接”。朴素模式(简单拆分)称为 ECB,存在问题。正确使用分组密码并不容易,它比在 AES 或 3DES 等之间进行选择更重要。
Use AES.
In more details:
So, when in doubt, use AES.
Note that a block cipher is a box which encrypts "blocks" (128-bit chunks of data with AES). When encrypting a "message" which may be longer than 128 bits, the message must be split into blocks, and the actual way you do the split is called the mode of operation or "chaining". The naive mode (simple split) is called ECB and has issues. Using a block cipher properly is not easy, and it is more important than selecting between, e.g., AES or 3DES.
除 AES 和 Blowfish 之外,所有这些方案都存在已知漏洞,不应使用。
不过,Blowfish 已被 Twofish 取代。
All of these schemes, except AES and Blowfish, have known vulnerabilities and should not be used.
However, Blowfish has been replaced by Twofish.
所描述的加密方法是对称密钥分组密码。
数据加密标准 (DES) 是其前身,使用 56 位密钥对 64 位块中的数据进行加密。每个块都是单独加密的,这是一个安全漏洞。
三重 DES 通过在每个块上应用三个 DES 操作来扩展 DES 的密钥长度:使用密钥 0 进行加密、使用密钥 1 进行解密以及使用密钥 2 进行加密。这些密钥可能是相关的。
与传统商业产品和服务交互时通常会遇到 DES 和 3DES。
AES 被认为是后继者和现代标准。 http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
我认为不鼓励使用 Blowfish。
强烈建议您不要尝试实现自己的加密技术,而是使用高级实现,例如针对静态数据的 GPG 或针对传输中的数据的 SSL/TLS。这是一个关于加密漏洞的精彩而发人深省的视频 http:// /rdist.root.org/2009/08/06/google-tech-talk-on-common-crypto-flaws/
The encryption methods described are symmetric key block ciphers.
Data Encryption Standard (DES) is the predecessor, encrypting data in 64-bit blocks using a 56 bit key. Each block is encrypted in isolation, which is a security vulnerability.
Triple DES extends the key length of DES by applying three DES operations on each block: an encryption with key 0, a decryption with key 1 and an encryption with key 2. These keys may be related.
DES and 3DES are usually encountered when interfacing with legacy commercial products and services.
AES is considered the successor and modern standard. http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
I believe the use of Blowfish is discouraged.
It is highly recommended that you do not attempt to implement your own cryptography and instead use a high-level implementation such as GPG for data at rest or SSL/TLS for data in transit. Here is an excellent and sobering video on encryption vulnerabilities http://rdist.root.org/2009/08/06/google-tech-talk-on-common-crypto-flaws/
AES 是一种对称加密算法,而 RSA 是一种非对称(或公钥)加密算法。 AES 中的加密和解密是使用单个密钥完成的,而 RSA 中则使用单独的密钥(公钥和私钥)。 128 位 AES 密钥的强度大致相当于 2600 位 RSA 密钥。
AES is a symmetric cryptographic algorithm, while RSA is an asymmetric (or public key) cryptographic algorithm. Encryption and decryption is done with a single key in AES, while you use separate keys (public and private keys) in RSA. The strength of a 128-bit AES key is roughly equivalent to 2600-bits RSA key.
尽管三倍的cryptoserviceProvider是一种安全且良好的方法,但它太慢了。如果您想参考MSDN,您会建议您使用AES而不是三倍。请检查下面的链接:
http://msdn.microsoft.com/en-en-us /library/system.security.cryptography.tripledescryptoserviceprovider.aspx
您将在评论部分中看到此关注:
祝你好运
Although TripleDESCryptoServiceProvider is a safe and good method but it's too slow. If you want to refer to MSDN you will get that advise you to use AES rather TripleDES. Please check below link:
http://msdn.microsoft.com/en-us/library/system.security.cryptography.tripledescryptoserviceprovider.aspx
you will see this attention in the remark section:
Good luck
DES 是七十年代的旧“数据加密标准”。
DES is the old "data encryption standard" from the seventies.
如果包装好,所有这些实际上都可以安全使用。
这里是 AES 包装的示例。
All of them can actually be securely used if wrapped.
Here is an example of AES wrapping.
AES 是目前公认的标准算法(因此称为高级加密标准)。
其余的则不然。
AES is the currently accepted standard algorithm to use (hence the name Advanced Encryption Standard).
The rest are not.