用C#加密.swf文件 [英] Encryption of .swf files in c#

查看:83
本文介绍了用C#加密.swf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我需要编写代码以用C#加密.swf文件,我基本上需要的是在一个驱动器中有我可用的教育内容,这些内容都是.swf格式,并且我不希望任何人查看此内容.

如果我要查看此内容,则只能在我的应用程序中查看它,在该应用程序中将完成.swf文件的解密,并且可以在我的应用程序中的浏览器上查看文件.

请帮我解决这个问题..

问候,
Krunal Panchal

Dear All,

I need to write a code for encryption of my .swf files in c#, what i basically need is there are my educational contents available in one drive, the contents are in .swf format and i don''t want anyone to view this content.

If i want to view this content then it could be viewed only in my application, where decryption of .swf files will be done and will be able to view files on browser in my application.

Please help me out how to make this possible..

Regards,
Krunal Panchal

推荐答案

不可能.一旦您的应用解密了文件并开始在浏览器(任何浏览器)中播放文件,swf就会以临时文件的形式以未加密的形式存在于硬盘驱动器上,届时可供任何熟识的人随意使用关于网络浏览器.您可以对文件进行加密和解密,但是一旦浏览器开始播放文件,您就被搞砸了.

我知道这一点是因为我在2008年有类似的要求.是的,实际上,我想出了一些加密/解密代码,简单的事实是浪费时间.
Not possible. Once your app decrypts the file and starts to play it in a browser (ANY browser), the swf exists as a temporary file on the hard drive in its unencrypted form, and is at that point, availbable for unencumbered use by anyone that knows anything at all about web browsers. You can encrypt the file, and decrypt it, but once the browser starts to play it, you''re screwed.

I know this because I had a similar requirement back in 2008. Yea, I actually went so far as to come up with a crapload of code to encrypt/decrypt, and the simple fact is it was a waste of time.


这篇关于用C#加密.swf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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