ios+android+rc4加密,关于加密:iOS的RC4算法

我有使用rc4算法的密钥和加密值,我需要解密该密钥。请您帮我解决这个问题。 使用本机ios。 请给我任何解决方案。 我已经引用了一些对我没有帮助的链接。我已经从服务器收到了一些加密值,并且已经生成了密钥。 使用该加密值和密钥,我需要使用RC4算法解密。

Apple CommonCrypto支持RC4。 编写一些代码以使用它,如果遇到问题,请发布该代码。

I have referred some links it won't help me .

这可能对您有帮助:http://www.google.com/#q=kCCAlgorithmRC4+site:apple.com。

该代码将如下所示:

ccStatus = CCCrypt(kCCDecrypt,

kCCAlgorithmRC4,

kCCOptionPKCS7Padding,

cbKey,

kCCAlgorithmRC4,

cbInitVec,

cipherText,

cipherTextSize,

outBuffer,

outBufferSize,

&outWritten);

和一些小自行车脱落。 由于存在偏见,RC4并不真正适合在SSL / TLS中使用。 确保丢弃密钥流的前1K到2K字节。 更好,甚至不使用它。

来自AlFardan,Bernstein等人,关于TLS和WPA中的RC4的安全性:

... While the RC4 algorithm is known to have a

variety of cryptographic weaknesses (see [26]

for an excellent survey), it has not been previously

explored how these weaknesses can be exploited

in the context of TLS. Here we show that new and

recently discovered biases in the RC4 keystream

do create serious vulnerabilities in TLS when using

RC4 as its encryption algorithm.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值