Solved

Protecting  any media files and running through my program

Posted on 2004-08-06
9
145 Views
Last Modified: 2010-05-03
Can i protect any media file with extention mpeg,avi,wav so that it couldn't open in any player. And then can i write a program so that i can pass a password to that protected media file and it runs in the player which i have created in that program.
0
Comment
Question by:itmastero
  • 3
  • 3
9 Comments
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11742263
You can write a program to encrypt/protect the file using password, but in then you have to change the file extension, otherwise your program wont run if you run that media file (well except if you set your program as a default program for all media files)

Darko
0
 

Author Comment

by:itmastero
ID: 11756429
How do i do that with a media file which is having changed extension. can you give me the code.
0
 
LVL 22

Accepted Solution

by:
DarkoLord earned 110 total points
ID: 11761351
Well I can give you some steps/directions:

First make file encryption/decryption... you can find an example here:
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=54321&lngWId=1

Then make a function that will open the file and ask you for password... when correct password is entered, the file is decrypted and copied to a temporary location with original file extension and then run...

Then you can register your own file extension and make that all files with that extension will open in your program... example here:
http://www.vbforums.com/showthread.php?s=&threadid=270865&highlight=file+extension+register

Darko
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:itmastero
ID: 11871728
Darko the links you gave were good enough to encrypt small size media files but if i have a whole big movie of 3 hrs. then that takes a long time to encrypt and decrypt it so thats like a person should have grt patient to wait for that. can u suggest me some faster way to do that.
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11874601
Well other way would be to just add some encrypted strings at the end of the file... that way the original media file becomes inaccessible... so when user enters the password, you try to decrypt the string at the end of the file and if successful, you copy the file without that crap at the end to another location and then play it

One thing though, you still have to copy the file to another location after "decrypting" (if you dont do that, the user could just crash your program and the decrypted file would still remain there)...
0
 

Author Comment

by:itmastero
ID: 12468863
Really speaking i have no received any better solution. So this can be disposed off. Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to create a duplicate finder Application 9 115
Problem to skip loop 6 55
Excel object stays open 19 71
Help with retrieving partial value from a column using VB.NET 4 43
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now