Archvile
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Misc. > Everything Else > Need testers for encryption program
 
Author
All times are GMT. The time now is 14:16. Post New Thread    Post A Reply
Scet
Member


Posts: 456
Registered: 05-06


I've recently been working on my own encryption program called occulo. Basically it hides files by using the last two bits in every color of an image, and resizes it if necessary.

The problem is someone has reported that it doesn't work for them. There's nothing really special about the program, it's just a simple console application and only uses one library(DevIL). So I have no idea what's wrong.

It would really help if people here could test it, especially someone with XP SP3 or Win7. Just follow the instructions on the project page for the example picture. Thanks.

Old Post 03-30-10 14:29 #
Scet is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Maes
I like big butts!


Posts: 8662
Registered: 07-06


Does it have any other prerequisites? Like a Visual C++ redistributable? Because I couldn't get it to start :-/

I'll try to see if it's compilable under gcc. However a few things in the SC made me go WTF e.g. why are several things including bit rotation re-implemented in inlined asm?

Old Post 03-30-10 14:58 #
Maes is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
exp(x)


Posts: 2282
Registered: 04-04


This reminds me of my signals and systems course where we had a sound file embedded in the least significant bits of one color channel and had to figure out how to extract it with Matlab.

Old Post 03-30-10 15:12 #
exp(x) is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Scet
Member


Posts: 456
Registered: 05-06



Maes said:
words


I suppose it may need a redistributable, it is the debug build. Also I really should implement that in C, I just wanted the project done which is way I used the assembly.

Edit: I've uploaded the release build, with the asm removed. Please try that.

Last edited by Scet on 03-30-10 at 18:16

Old Post 03-30-10 17:41 #
Scet is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Maes
I like big butts!


Posts: 8662
Registered: 07-06


Well, now it works OK. Encrypts/decrypts successfully, with or without a password, and resizes image to accommodate for large data files (the space requirements are Image * Height *4 = FileSize, right?).

Probably the other people you mentioned also had problems with the debug build.

Also, why not replacing the calls to the rotate functions with a simple
data<<count or data>>count? it will be both more compact and faster, without the overhead of calling a function (C optimization zealots, don't speak about automatic inlining yet).

Old Post 03-31-10 09:09 #
Maes is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Scet
Member


Posts: 456
Registered: 05-06




(the space requirements are Image * Height *4 = FileSize, right?)



I don't know the exact equation, but it's two bits per channel. Since the output is always 24-bpp then it's one byte per one and a third pixels.



replacing the calls to the rotate functions with a simple
data<<count or data>>count?


Well the <</>> operators are shift, not rotate. I'm now using ( ( data << rotation ) | ( data >> ( 8 - rotation ) ) ) instead of the function.

I've uploaded a new proper version if anyone is interested. Thanks for testing Maes.

Old Post 04-01-10 22:30 #
Scet is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 14:16. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Misc. > Everything Else > Need testers for encryption program

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory