View Single Post
Old 19th February 2019, 00:13   #9  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
but don't take it as definite
Sounds about right to me.

SpoRv, What you could do is XOR one clip with another, could even use a single frame to XOR the whole clip, and use same single frame clip to both 'Encode' and 'Decode'.
I think MaskTools should have XOR capability. [Sometimes called EOR]

As a daft example, could use eg
Code:
RandomSource(Length=Len,Width=W,Height=H,Seed=SECRET_KEY).ConvertToYV12(Matrix=PC601)  # to match target clip. EDIT: ADDED MATRIX arg to make better (full range) key clip
as your 'key' encode/decode clip.

Apply XOR, using the key clip, and decode using equivalent key clip at the other end.
All you need pass is the encoded clip, and the SECRET_KEY to create the 'key' clip.
(You could also just use any clip that you both have as a key clip, maybe with fixed seed AddGrain)

EDIT:
If A XOR B = C : Then C XOR B = A [EDIT: Also, C XOR A = B]

EDIT: I believe that above is how RAID 5 works, the third drive (DRIVE_C) holds result of DRIVE A XOR DRIVE_B,
if either drive A or Drive B fails, it can be recovered [EDIT: to a new drive] by XORing the remaining drive with DRIVE_C.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 19th February 2019 at 13:36.
StainlessS is offline   Reply With Quote