Hi Brian,
You can decrypt your IVE file into a std::stringstream and use the
following code to read it from memory:
//Read IVE file from memory
osgDB::ReaderWriter *fileReader =
osgDB::Registry::instance()->getReaderWriterForExtension("ive");
if(fileReader) {
return fileReader->readNode(decryptedStream,options);
}
This might prevent people from using your IVE file, however they can
still easily get access to your texture/shader data. With a few clicks
of a mouse I can setup GLIntercept
(http://glintercept.nutty.org/index.html) to intercept all
texture/shader uploads to the graphics card and save them to a file.
Just thought you should be aware of this security hole.
-Farshid
On Dec 11, 2007 9:13 AM, Brian <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Recently, the company that I work for has decided to distribute a demo of our
> application. To protect our own investments, I made the brilliant comment
> that we should encrypt our models and shader source. We primarily use IVE
> files, and looking at the IVE plugin, it makes strong use of std::istream
> class.
>
> My question is a bit off-topic for OSG, but does anyone know of a way to
> create a memory resident file in Windows XP that can be used with a
> std::istream object?
>
> Thanks,
> Brian
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org