I encrypt my .mp4 into a custom format (.opu). Now I should decrypt my file and save them into temp folder at the start of my application. and play them using WindowsMediaPlayer control in C#. So I have the risk of stealing my files from temp folder. What is the best way to prevent stealing my files? How to play encrypted video file using WindowsMediaPlayer?
How to play encrypted video file using WindowsMediaPlayer?
4.9k views Asked by Mohamad Shiralizadeh At
2
There are 2 answers
0
Artem Razin
On
There is a way using virtualization, i.e. hooks. The idea is to hook functions like ReadFile to provide decrypted data, SetFilePointer to maintain current pointer within a "file" etc. You can view one of the examples at http://www.boxedapp.com/encrypted_video_streaming.html
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in ENCRYPTION
- Is TLS enough for client server encryption or if dealing with sensitive data, its better to add ur own encryption also. for example leverage AWS SSM?
- Secure Messaging Implementation in C#
- File splitting and encryption
- Large file processing in the web browser
- Java code of AES/GCM/NoPadding encryption algorithm with authentication tag
- AES-256-CBC encryption returning different result in Python and PHP , HELPPP
- Why are encrypted stored procedures taking a long time to execute in SQL Server 2022?
- Why/How does Apache auto-include "DHE" TLS1.2 ciphers while nginx needs "dhparams" file?
- Encrypt in Single Store and Decrypt in SQL Server
- Is it possible to develop a Transparent Data Encryption(TDE) system on macOS now?
- How can I ensure incremental changes in deciphered messages in Python substitution cipher decoding?
- Getting Error Message as "the input string is not a complete block" while Decryting using AES
- Laravel: How to fix "the MAC is invalid" on local environment
- How to encrypt a string and decrypt it using a password
- Willena's sqlite-jdbc-crypt driver for sqlite3 database encryption
Related Questions in WINDOWS-MEDIA-PLAYER
- Why is a file unplayable in Windows Media Player?
- Windows 11 UWP app throws FileNotFoundException on Windows.Media.Playback.MediaPlayer constructor
- VBScript Using Out of Date ProgID for MediaPlayer
- Get current song title from Windows Media Player UI in the bottom left
- "Add to Windows Media Player list" programmatically
- MS Access Windows Media Player Plugin in Fullscreen
- Play 8k video in wpf using mediaELement is freezing
- Alternate of Windows Media Player in .NET 6
- Select and play a video in Access using a Subform
- Customize Windows Media Player in C#
- How to you send the left or right track only of a media player to both left and right output? (preferably in VB.Net)
- Prohibit WindowsMediaPlayer wmmpsMediaEnded event
- How to use Media Player in Visual Studio 2022?
- C++ WinRT Playback SpeechSynthesisStream via MediaPlayer::Play() requires some waiting, doesn't it?
- How do I use playlists in an HTA file using VBScript?
Related Questions in AXWINDOWSMEDIAPLAYER
- Video color change AxWindowsMediaPlayer
- C# program crashes when setting media player URL of axWindowsMediaPlayer object from separate form window: code 3221225477 0xc0000005 Access violation
- I have created a application in vb.net with wmp in it and i use panels to clear and add new UC's when i add new UCs my video is played in bg
- Windows Media Player in .NET 5.0
- Memory leak in Windows Media Player
- VB.net Video file only playing music in windows media player
- how to drag and drop on an AxWindowsMediaPlayer screen C#
- Why do AxWindows Media Players affect Full Screen Generation in Visual Studio?
- Is this a bug on Visual Studio or AxWMPLib::AxWindowsMediaPlayer?
- How to add a derived class from AxWMPLib::AxWindowsMediaPlayer in Toolbox?
- VB.net: How to hide the Windows Media Player visualisation pane, leaving control bar visible, on a modal form?
- Playing videos without lag or black screen in C# winforms
- AxWMPLib.AxWindowsMediaPlayer has presented weird behavior for WMV files
- display picture as thumbnail in windows media player in winforms
- Retrieve radio song titles from axWindowsMediaPlayer control
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The best way would be to perform the decrypt to a stream in memory and play the video from there. That way there is never an on-disk file to steal.