iPhone中的图像加密和解密算法? [英] Encrypt and decrypt algorithm for image in iPhone?

查看:151
本文介绍了iPhone中的图像加密和解密算法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有任何算法加密/解密图像在iPhone的密码保护?

Is there any algorithm to encrypt/decrypt the image in iPhone with password protection?

推荐答案

有很多算法可通过OpenSSL,如AES和3DES。 OpenSSL不容易使用,但它是强大的。此外,还有很多教程。例如,这里是如何使用AES加密/解密的示例纯C。

There are a lot of algorithms available through OpenSSL, like AES and 3DES. OpenSSL isn't easy to use but it's mighty. Also, there are a lot of tutorials out there. For example, here's a sample on how to en/decrypt with AES in plain C.

然后是CommonCrypto库。查看问题 iPhone上的NSString的AES加密< a> ,您可能最感兴趣的部分是将NSData扩展为使用AES进行加密和解密的方法< a>。

And then there's the CommonCrypto library. See the question AES Encryption for an NSString on the iPhone, the part you're likely most interested in are methods that extend NSData for encryption and decryption with AES.

这篇关于iPhone中的图像加密和解密算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆