在ActionScript 3中加密/解密图像 [英] Encrypt/Decrypt Image in ActionScript 3
问题描述
我正在开发涉及(基本上)图片消息收发功能的移动应用程序。我需要使用简单的纯文本密码对图像进行加密/解密。由于捕获的图像的性质,加密和解密过程在设备上发生/非常重要。
I am developing a mobile app that involves (essentially) picture messaging as a feature. I need the images to be encrypted/decrypted with a simple, plain-text password. Due to the nature of the images being captured, it is /critical/ that the encryption and decryption processes happen on the device.
在通过移动开发演示Flex,我决定用Flex SDK创建我的应用程序,这意味着我将在ActionScript 3和Flex中实现客户端应用程序。
After sitting through a presentation on mobile development in Flex, I have decided to create my app with the Flex SDK, which means I will be implementing the client application in ActionScript 3 and Flex.
有一件事我想做在加密之后,在AND之前显示舞台上的图像。然而,这是一个很好的,而不是一个需要的。
One thing I want to do is show the image on the stage before AND after it has been encrypted. However, this is a nice-to-have, not a need-to-have.
有没有任何已知的API /算法,我正在尝试做?我也会赞赏指向CPU友好的加密算法。我已经尝试过Googling,但对我来说并没有太多的帮助。
Are there any known APIs/algorithms out there for what I am trying to do? I would also appreciate being pointed towards CPU-friendly encryption algorithms. I've tried Googling around, but it hasn't been too much of a help for me.
推荐答案
我会建议as3crypto库。它应该提供您需要的一切。
I would suggest the as3crypto library. It should provide everything you need.
http ://code.google.com/p/as3crypto/
这篇关于在ActionScript 3中加密/解密图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!