I want to encrypt a video file and want to play this encrypted file in mplayer.
Is there any api for encryption in Qt. I'm a newbie for encryption so also give some sample code.
I want to encrypt a video file and want to play this encrypted file in mplayer.
Is there any api for encryption in Qt. I'm a newbie for encryption so also give some sample code.
Two things.
#1. What file format do you want to use. Does mplayer support this format?
#2. Qt does not support encryption, nor writing media files.
If u hav any other encryption algorithm in C++ , pls send me.Originally Posted by e8johan
Try QCA please:
http://delta.affinix.com/qca/
Libraries based on run-time plugins are not useful for production or commercial development. One needs to be able to static link when releasing into the wild.
Rubbish. Was there really a need to wake a 6 year-old thread to add this?
Originally Posted by safknw
Qt Code:
const uint mysecretkey = 732423; char encryptdecrypt(char x){ return x ^ mysecretkey; }To copy to clipboard, switch view to plain text mode![]()
safknw (25th August 2006)
Depends what type of encryption you are talking about... Does mplayer support playing "encrypted" files? I don't think so, so you'd have to decrypt the file before feeding it to mplayer. It should allow playing from stdin, so take a look at QProcess (to call mplayer) and QIODevice class (to implement stream encryption), an example is available on Qt Quarterly in an article about creating custom QIODevices.
BTW. Maybe you mean "encode" and not "encrypt"? Encrypting involves using a cipher mechanism which prevents unauthorised access to contents of the encrypted message.
Bookmarks