Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

How encrypt a video file?

video encrypt decrypt directx

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1 Alireza_1387

Alireza_1387

    CC Newcomer

  • Member
  • PipPip
  • 11 posts

Posted 01 July 2015 - 04:08 AM

Hi everyone .

I want Encrypt a video file(like avi , mkv and etc) and decrypt it .

Is there some library in c# for doing that?

Something like DirectX can do it?


Edited by Alireza_1387, 01 July 2015 - 04:09 AM.


#2 lespauled

lespauled

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1360 posts

Posted 01 July 2015 - 06:39 AM

If you want to send personal videos to others, there are better ways to do it.  Encryption is one of the last options


My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth

#3 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts

Posted 01 July 2015 - 02:59 PM

Do you mean something like zip with encryption, or something else?


Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#4 Alireza_1387

Alireza_1387

    CC Newcomer

  • Member
  • PipPip
  • 11 posts

Posted 03 July 2015 - 03:06 AM

I want it for military project .We take frames from video and divide it to tiles and change the tiles' places . and this is an encryption . 



#5 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts

Posted 03 July 2015 - 12:17 PM

While this sounds like very, very weak encryption, it's really going to depend on the specific file format.


Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#6 DarkLordCthulhu

DarkLordCthulhu

    CC Devotee

  • Senior Member
  • PipPipPipPipPipPip
  • 422 posts

Posted 21 July 2015 - 03:36 PM

I suggest studying cryptography.  I've just recently started learning cryptography, so I don't know much about it, but I do know you can XOR a file with a pseudorandomly generated stream of bits of the same length to implement stream cypher encryption.  XOR is great for encryption because the encryption and decryption algorithms are the same.  You run the same program to decrypt a file that you run to encrypt it.  Cryptography is pretty fascinating stuff, really. :)


Programming is a journey, not a destination.

#7 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts

Posted 22 July 2015 - 04:55 AM

I'll add on, I've had the fortune/misfortune of dealing with some military subcontractors. They take encryption VERY seriously. I have a feeling your proposal will not be acceptable for military use.


Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#8 MuStA

MuStA

    CC Regular

  • Member
  • PipPipPip
  • 43 posts

Posted 24 August 2015 - 11:53 PM

I'd also addon to the above, I'd not consider myself a cryptogrophy professional, but you may want to consider encrypting the whole file byte by byte, and restore it to it's original form once needed. This allows you to use stronger encryption methods such as AES with a very strong key, and bytes manipulation.


.Musta { background-color: Black; }