开发者

Any good cocoa libraries that include both salt and IV AES Encryption?

开发者 https://www.devze.com 2023-04-09 17:05 出处:网络
I am just polishing up my encryption tool, but I noticed I am missing the salt, which is importnat in order to make the encryption more secure. I am using some built in cocoa methods, but they don\'t

I am just polishing up my encryption tool, but I noticed I am missing the salt, which is importnat in order to make the encryption more secure. I am using some built in cocoa methods, but they don't include either. I don't want to write this from scratch because it would be hard to get right. Are there any good cocoa libraries out there that include salt and IVs for AES Encryption?

开发者_如何学JAVAThanks for the help


Yes, Rob Napier has written such an implementation.

For decryption, you'll have to write that yourself:

I will leave the decrypt method as an exercise for the reader. It’s almost identical, and it’s a good idea to actually understand this code, not just copy it.

0

精彩评论

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

关注公众号