复制保护usb [英] Copy protect usb

查看:58
本文介绍了复制保护usb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有USB上的视频文件,我想保护它们不被复制。



$
我原来的想法很简单,获取USB的序列号,使用序列号加密文件,然后在Windows Media Player或任何其他尝试运行它的播放器运行时,使用USB的密钥序列号对其进行解密。




起初我认为玩家使用WinApi函数ReadFile来读取文件,我想做Hook函数并在此时解密数据 - 我错了,媒体播放器不使用此功能来读取视频文件。

所以我认为它可能会使用一些映射功能 - 再次找不到它们。



我试图构建自己的播放器,但是所有的播放器都是在高级别的Api'上构建的,我找不到可以解密数据的点。



我很绝望......我已经有几个月了,我真的需要帮助。



目标:t o保护存储在USB上的视频文件不被复制

方式:任何可行的方法,如果您知道如何执行以下操作之一,我尝试在运行时加密并打开:

1在运行时解密数据,尽管在磁盘上文件加密的媒体播放器将播放该文件(仅当他在这个特定的usb时)

2解密数据到内存变量并开始这个变量作为文件的视频播放器(最不错的选择,系统会过度亮点)
$
3某种方式来制作复制保护

我真的很想爱帮助这里

Hello, I have video files on USB and I want to protect them from copied.


My original idea was simple, Take the serial number of the USB, Encrypt the files with the serial number, then at runtime when Windows Media Player or any other player trying to run it, decrypt it with the key - serial number of the USB.


At first I thought the players use the WinApi function ReadFile to read the file, and I wanted to do Hook the function and decrypt the data at this point - I was wrong, media player do not use this function for reading video files.
So I thought It might use some mapping functions - again failed in finding them.

I tried to build my own player, but all the players are being built at a high level Api'S and I could not locate the point where I can decrypt the data.

I'm desperate ... I'm on it for a few months, I really need help.

The goal: to protect video files stored on a USB from being copied
Way: anything that will work, I tried to encrypt and open at run time, if you know how to do one of the following:
1 decrypt data at runtime that despite thay on the disk the file encrypted media player will play the file (only when he in this particular usb)
2 decrypt data to memory variable and start video player with this variable as a file (the least good option, the system will over louded)
3 some way to make the copy-protection
I really would love to help here


推荐答案

这是我从最安全到最不安全的想法。  这些都是非常高级的内容,因此您需要在适当的论坛上填写详细信息或提出更具体的问题。

Here are my thoughts from most secure to least secure.  This is all pretty high level stuff, so you would need to fill in the details or ask more specific questions on appropriate forums.


  1. 播放视频。  您的服务器可以确定用户是否有权查看视频,如果有,则提供它们
  2. 使用某种类型的第三方许可系统。  存在一些基本上用作加密狗的USB拇指驱动器。  (这导致#3)
  3. 托管一个视频播放器(听起来你已经开始沿着这条路线),关键是你需要能够以视频流的形式提供视频内容。  您可以动态解密视频文件,然后将其提供给视频播放器。我大约80%确定DirectShow允许这个
    ,但这不是我知道的细节。  您可能需要实际了解基础容器格式(例如MP4),然后将音频和视频流分别提供给播放器。  再一次不是
    我知道的东西,而不是我现在感兴趣的东西。  存在第三方播放器,例如VLC,当然可以通过这种方式进行修改。
  4. 将视频文件解密到临时位置,然后将视频播放器(例如Windows Media Player)指向该文件。  当WMP终止时删除临时文件。  根据WMP打开文件的方式,您甚至可以在编写临时文件时使用  FILE_SHARE_DELETE
    以确保清理它。


这篇关于复制保护usb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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