 |
|
 |
Hey,
does the gzip.h also support encrypted archives?
Or how can I encrypt a big (~700MB) archive as fast as possible?
Thanks,
Matthias
|
|
|
|
 |
|
 |
It's been 8 years since I last had to use this 3rd party library, you will have to look up for yourself.
I'll be more enthusiastic about encouraging thinking outside the box when there's evidence of any thinking going on inside it. - pTerryBizSquawk
|
|
|
|
 |
|
 |
Halo,do someone have Compressing and Decompressing Data using C++ source code.IF u guys n girls have,can u all sent me the source code.my email at whocares1717@hotmail.com.thx
|
|
|
|
 |
|
 |
Can this be used to gzip/gunzip a set of files? If so, does anyone have an example?
|
|
|
|
 |
|
 |
Try downloading the latest source code there may be sample source code there.
The API is quite rich and you could probably do what you want by chaining various classes together.
I'll be more enthusiastic about encouraging thinking outside the box when there's evidence of any thinking going on inside it. - pTerrywww.many-monkeys.com
|
|
|
|
 |
|
 |
If i add only header file, it compiles well.
But if i add 'Gzip zipper(1);' code, compiler puts error message
why does this happen?
I'm using Crypto++ 5.2.1 library..
|
|
|
|
 |
|
 |
What error message would that be?
I'll be more enthusiastic about encouraging thinking outside the box when there's evidence of any thinking going on inside it. - pTerrywww.many-monkeys.com
|
|
|
|
 |
|
 |
It says Gzip is a undeclared identifier..
Even though I included the header.
|
|
|
|
 |
|
 |
'CryptoPP::Gzip::Gzip(CryptoPP::BufferedTransformation *,unsigned int,unsigned int,bool)' : cannot convert argument 1 'int' to 'CryptoPP::BufferedTransformation *'
So it says Gzip zipper(1) is wrong.. how should i change it??
thx for your help.
|
|
|
|
 |
|
|
 |
|
 |
Which breaks Get() code for some unknown reason (to me at this point).
The work around seems to be to use Gunzip as Wei demonstrates in test.cpp:
void GunzipFile(const char *in, const char *out)
{
FileSource(in, true, new Gunzip(new FileSink(out)));
}
However, this means at times a double buffer space is required - one for the string, and the one for a BYTE[] if used.
|
|
|
|
 |
|
 |
I assume Close from the Crypto++ library is not longer available?
Well libraries/frameworks change I suppose.
I'll be more enthusiastic about encouraging thinking outside the box when there's evidence of any thinking going on inside it. - pTerrywww.many-monkeys.com
|
|
|
|
 |
|
|
 |
|
 |
Jeffrey Walton wrote: It's nice to see you monitor your articles
I do try, but one is getting old and forgetful.
I'll be more enthusiastic about encouraging thinking outside the box when there's evidence of any thinking going on inside it. - pTerrywww.many-monkeys.com
|
|
|
|
 |
|
|
 |
|
 |
I forgot I even posted a solution - even though if I actually looked at the rest of the messages it would have been apparent. Must check my glasses as well.
I'll be more enthusiastic about encouraging thinking outside the box when there's evidence of any thinking going on inside it. - pTerrywww.many-monkeys.com
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
In my thread, I have a Gzip instance. So, each time after I capture the desktop image, I use folowing code to compress the buffer just like the example:
while(1)
{
...
//some code used to capture the desktop image
zipper.Put((BYTE*)Buffer, Buflen)
zipper.Close();
size = zipper.MaxRetrieveable();
//some other manipulate
...
}
BUT, when run the codes second time, I got a ZERO size ,that's to say ,the varible szie equal 0!!!
Who can help me ???
|
|
|
|
 |
|
 |
withou a full sample that exhibits the problem its hard to work out the problem.
You might want to create a new zipper object in each loop so that it starts afresh each time.
I don't use the crypto++ library at the mo as I am in a pure .NET environment.
I am using VB on the current project
www.many-monkeys.com
|
|
|
|
 |
|
 |
Yes, after I moved the codes in while loop to a function, it worked!
But, there has a new problem. If I just only use the UNZIP instance to unzip a data buffer zipped by ZIP in another program, each time when I run unzipper.Close(); I got an exception said: Unhandle exception in **.zip(KERNAL32.DLL):0xE06D7363: Mirosoft C++ Exception.
Why? Must I use ZIP and UNZIP together? Or I can't use UNZIP separetly?
Thank you for your kind to answer my questions!
|
|
|
|
 |
|
 |
you should be able to - this is one for the crypto++ people.
You could try stepping into the code and seeing where in the crypto++ code it fails exactly.
I am using VB on the current project
www.many-monkeys.com
|
|
|
|
 |
|
 |
Hi,
I have read many places and found that Crypto++ functions are very much compatible to php mcrypt library. I never knew how to use this in VC++ application. You have dobe such a wonderful work and its so easy to understand that i can compile and run your code easily. But i am having a small problem and hope that you can solve it out. I have to use the mcrypt library of php to encrypt a file at server and i have to decrypt the same file on client side using VC++. I am using Rijndael algorithm for encryption at server side through PHP. as the documentation says...
mcrypt's MCRYPT_RIJNDAEL_128 is compatible with cryptopp-php's CRYPTOPP_CIPHER_AES/ CRYPTOPP_CIPHER_RIJNDAEL, which are just aliases for each other.
and
MCRYPT_MODE_CBC in mcrypt and CRYPTOPP_MODE_CBC in cryptopp-php.
MCRYPT_MODE_ECB in mcrypt and CRYPTOPP_MODE_ECB in cryptopp-php.
Can you tell me how to use crypto++ to do the same. or show me some piece of code to make it easy to understand..I need it urgently..Please help in doing the same. Any help or pointers are highly appreciated.
Thanks a lot in advance..
Regards,
Himanshu
|
|
|
|
 |
|
 |
Your best bet is to post this to the crypto++ mailing list however as I remember there few samples in the library but the test harness they produce should give you pointers.
I currently don't use crypto++, and I don't have the latest version onmy machine.
I am using VB on the current project
www.many-monkeys.com
|
|
|
|
 |
|
 |
I want to know the algorithm of zipping the data and information.
I want to bild up the application like winzip or winrar.
Please tell me any logic for algorithm........
|
|
|
|
 |