Help for AES-128 Bit Algorithm ?? i want to encrypt it

青春壹個敷衍的年華 提交于 2019-12-18 09:49:41

问题


Can i get link for AES-128 Bit Algorithm any sample code please help


回答1:


AES-128 is already implemented in the Security framework and CommonCrypto API for the iPhone. This site contains some sample code using this to encrypt a message.

You can also find sample code on Apple's website that makes use of this and provides some Objective-C wrappers.




回答2:


Quite a few are written in C or C++ that you should be able to use in the iPhone, though I don't know of any that is written in Objective C as such. Note that in most (if not all) cases, the AES code itself is just one part of a larger library that attempts to include enough to actually make the cryptographic algorithm itself useful and usable.




回答3:


I think you want to use CCCryptor and not roll your own methods.




回答4:


This may be a bit trite, but it's not hard to implement AES yourself. I've done it in a couple of hours. The official specification is here.



来源:https://stackoverflow.com/questions/2774239/help-for-aes-128-bit-algorithm-i-want-to-encrypt-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!