What's the best encryption algorithm for the iPhone in terms of speed and security?

前端 未结 3 915
礼貌的吻别
礼貌的吻别 2021-01-06 19:58

The iPhone supports the following encryption algorithms

enum {
    kCCAlgorithmAES128 = 0,
    kCCAlgorithmDES,            
    kCCAlgorithm3DES,           
         


        
3条回答
  •  时光说笑
    2021-01-06 20:35

    Of those algorithms you list, I believe RC4 is the fastest. In addition, the speed of RC4 does not depend on the key length once it has been initialized. So you should be able to use the maximum key size for that one without worrying about runtime cost.

提交回复
热议问题