Tag: 河豚

如何在iOS中实现Blowfishalgorithm

什么是在iOS中实施BlowFish ECBencryption的最佳方式? 我一直在googlesearch,并在这里find了图书馆。 但是这个库没有文档。 不知道如何使用它。

在Objective-C代码中解密来自河豚的值

我收到服务器的encryption数据(BLOWFISH ALGORITHM),我必须在IOS中使用blowfishalgorithm来解密它。 你可以从这里下载我的代码: https ://www.dropbox.com/s/nswsm7des7isgd5/BlowfishTest-4.zip 我从这个任务挣扎了2天,我尝试了很多链接,发现一些有用的: Blowfish源代码 如何在iOS中实现Blowfishalgorithm http://www.codeding.com/articles/blowfish-encryption-algorithm-for-iphone 在第三个环节,我得到了ECB(我必须使用ECB进行解密)。 但是这个代码在解密之后也没有给出正确的输出。 我正在使用在线工具进行testing,并显示正确的输出: http : //www.tools4noobs.com/online_tools/decrypt/ Key = 20zE1E47BE57$51 Input value is = aed5c110d793f850521a4dd3a56a70d9 Algorithm = BLOWFISH Mode = ECB Decode the input using= Hexa output = aYzY1380188405 ( this is correct output which i want) 我得到:¹àÀhÒ¢º¹ÂÂF 这是我的代码: //Mode selected by default in nib: “ECB” NSString […]