Encrypt & Compression a file failed - WeOnlyDo Discussion board

Encrypt & Compression a file failed (wodCrypt)

by clement su, Monday, January 02, 2012, 08:47 (2148 days ago)

I use the code below to encrypt & compress a very large text file (4.07 GB ) , but failed (The length of result file is 792 bytes). And version of wodCrypt.dll is 2.1.4 .

File size list of testing:
Brfore After
1.01 GB 11.2 MB
2.03 GB 22.5 MB
3.05 GB 33.8 MB
4.07 GB 792 KB
5.08 GB 12.0 MB

Dim srcfile As New FileBlob
Dim destfile As New FileBlob

Set oCrypt = New wodCryptCom

oCrypt.Type = TripleDES
oCrypt.InitVector = 123
oCrypt.SecretKey = Now
oCrypt.Compression = GZipCompression
oCrypt.Optimized = False

srcfile.FileName = txtSource.Text
destfile.FileName = txtDest.Text
oCrypt.Encrypt srcfile, destfile

Please advise.
Thanks


Complete thread: