1. To create using the Binary Object, load the mp3, set key, encrypt the mp3 and save
using a deceptive filename. (The original, unprotected mp3 is not to be distributed with your app, just the encrypted version.)
2. To play the mp3, use the Binary Object to load the deceptive filename, set the same key, decrypt and save to a temp file with another deceptive filename.
3. Load that temp file into Direct Show, and then Play.
4. As soon as Direct Show starts to play, delete the temp file with the File Object.
My problem is that I am able to snag that temp file and copy it as long as the music is playing. (Then I rename it to .mp3 and it is playable.)
Is there any way to have Direct Show play an encrypted mp3 without writing an unprotected version to disc?
( I understand that any sound played on a users computer can be recorded but I donít want to make it easy, and I am interested in protecting other files as well. )
Can I read an encrypted file with MMF without writing to disc with a temp file?