[vtkusers] adding encryption capability to VTK reader/writers

Hamid alishapal at yahoo.com
Tue Sep 28 21:09:50 EDT 2004


Thanks Sean for the help.
I'll look at the classes you mentioned, specially the one does on-the-fly  
decoding.


Hamid


On Tue, 28 Sep 2004 16:40:04 -0400, Sean McInerney  
<seanm at nmr.mgh.harvard.edu> wrote:

> Hamid,
>
>    I would have a look at how the vtkInputStream subclass  
> vtkBase64InputStream is implemented. It does some simple decoding on the  
> fly. Also check out vtkDataCompressor subclass vtkZLibDataCompressor and  
> see how these work with vtkXMLDataReaders. These are the particular  
> models that fit your goals.
>
> -Sean
>
> Hamid wrote:
>> Hi
>>  I'd like to add encryption/decryption capablity to vtk. I have couple  
>> of  files, which I have encrypted, and want to read them in and use vtk  
>> on  them. My encryption/decryption algorithm is a simple class which  
>> can read  data byte by byte untill it feels its 4096-byte long buffer  
>> and then it  decrypts them. (I can change the buffer length)
>>  Since my files are huge and decryption process takes a lot of time, I  
>> was  thinking of taking advantage of stream property of vtk and  
>> integrate my  code into reader/writers of it. So whenever user requests  
>> new data from my  file, it gets decrypted on the fly.
>>  So can you please help me ? I know this is not a simple issue but any  
>> type  of help is appreciated.
>> I have checked the vtk classes and to me it seems that I have to work  
>> with  Update() members of vtkImageData and vtkDataObject.
>>  Can you please name a reference (web link, book, article...) that  
>> will  help me in this task ?
>>  Thanks in advance
>> Hamid
>> _______________________________________________
>> This is the private VTK discussion list. Please keep messages on-topic.  
>> Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/



More information about the vtkusers mailing list