开发者

Blowfish objective-c implementation

开发者 https://www.devze.com 2022-12-10 03:36 出处:网络
What objective-c implementation of Blow开发者_C百科fish would you advice to use? (Or may be I just missed some standard implementations available?)Keep in mind that Objective-C is a superset of C, and

What objective-c implementation of Blow开发者_C百科fish would you advice to use? (Or may be I just missed some standard implementations available?)


Keep in mind that Objective-C is a superset of C, and so you don't need a specific Objective-C implementation. Blowfish written in C (like at this page, the first result of googling "C blowfish implementation") will do you just fine.


Not sure if you definitely wanted to go with blowfish, but the iPhone security framework supports the following out-of-the-box:

  • kCCAlgorithmAES128 - Advanced Encryption Standard, 128-bit block
  • kCCAlgorithmDES - Data Encryption Standard
  • kCCAlgorithm3DES - Triple-DES, three key, EDE configuration
  • kCCAlgorithmCAST - CAST
  • kCCAlgorithmRC4 - RC4 stream cipher

If you do decide to implement your own you may also need an arbitrary precision integer library, libtommath will compile for the iPhone will little to no changes.

0

精彩评论

暂无评论...
验证码 换一张
取 消