iPhone在速度和安全性方面最好的加密算法是什么? [英] What's the best encryption algorithm for the iPhone in terms of speed and security?

查看:298
本文介绍了iPhone在速度和安全性方面最好的加密算法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone支持以下加密算法

The iPhone supports the following encryption algorithms

enum {
    kCCAlgorithmAES128 = 0,
    kCCAlgorithmDES,            
    kCCAlgorithm3DES,           
    kCCAlgorithmCAST,           
    kCCAlgorithmRC4,
    kCCAlgorithmRC2 
};

我只想使用对称算法,因为非对称加密需要更多的计算开销。

I want to use only symmetric algorithm since asymmetric encryptions requires more computation overhead.

所以我想知道列出的哪一个是最好的算法,还有什么是密钥长度,以避免过多的计算开销。

So I want to know which of the ones listed is the best algorithm and also what is the key-length in order to avoid excessive computation overhead.

推荐答案

密钥长度



Bruce Schneier 在1999年写道:

Key length

Bruce Schneier wrote back in 1999:


更长的密钥长度更好,但
只有一点。 AES将具有
128位,192位和256位密钥
长度。这远远超过了可预见的未来所需的
。在
的事实上,我们甚至不能想象一个世界
,其中256位强力搜索是
可能。它需要一些基本的
的物理学突破和我们的
对宇宙的理解。对于
公钥加密,2048位密钥
具有相同的属性;

Longer key lengths are better, but only up to a point. AES will have 128-bit, 192-bit, and 256-bit key lengths. This is far longer than needed for the foreseeable future. In fact, we cannot even imagine a world where 256-bit brute force searches are possible. It requires some fundamental breakthroughs in physics and our understanding of the universe. For public-key cryptography, 2048-bit keys have same sort of property; longer is meaningless.



块密码



AES



这是当前的标准加密算法。大多数人认为它是安全的。如果您在密码学中没有深入的知识,那么您应该如何使用。

Block ciphers

AES

It's the current standard encryption algorithm. It's considered to be safe by most people. That's what you should be using if you haven't got a very deep knowledge in cryptography.

DES是AES的前身,由于其密钥长度被认为是破坏的。

DES is the predecessor of AES and is considered broken because of its short key length.

是DES具有更长的密钥长度的变化。它仍然在使用,但有一些已知的攻击。仍然没有破坏。

Is a variation of DES with a longer key length. It's still in use but there are some known attacks. Still it's not yet broken.

被认为是弱的。

它有一些已知的漏洞,但今天仍然使用,例如SSL。我建议不要在新产品中使用它。

It has some known vulnerabilities but is still used today, for example in SSL. I recommend not to use it in new products.

使用RC4或AES,需要流或块密码。

Use either RC4 or AES, depending if you need a stream or a block cipher.

这篇关于iPhone在速度和安全性方面最好的加密算法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆