security question

D

douglas

I am new to .net 2005.
In VB.NET 2005, I want to create a secure zip from the output generated by a
crystal report. I then want to email out the secure zip file.
To do this in the .net framework, what are the recommended tools (classes
and/or methods) that can be used?
The only thing that I can think to do is to call a secure pk zip , and
then launch outlook so that I can email out the zipped file.
 
T

Tom Shelton

I am new to .net 2005.
In VB.NET 2005, I want to create a secure zip from the output generated by a
crystal report. I then want to email out the secure zip file.
To do this in the .net framework, what are the recommended tools (classes
and/or methods) that can be used?
The only thing that I can think to do is to call a secure pk zip , and
then launch outlook so that I can email out the zipped file.

I believe that sharpziplib supports encrypted and password protected zip
files - I'm not 100% sure, so check it out at http://www.icsharpcode.net

As for email - look at the System.Net.Mail namespace.
 
C

Cheeso

I believe that sharpziplib supports encrypted and password protectedzip
files - I'm not 100% sure, so check it out athttp://www.icsharpcode.net

Last I checked, the people behind sharpziplib were still working on
AES encryption/decryption. If you want that NOW you can grab
dotnetzip from http://dotnetzip.codeplex.com . On the other hand if
you will be satisfied with regular ZIP encryption (which is rather
weak) then DotNetZip supports that now, and I guess SharpZipLib
supports it as well.

DotNetZip works with .NET 2.0, VB2005, and lets you create ZIP files
very easily.

Try
Using zip As ZipFile = New ZipFile
zip.Encryption = EncryptionAlgorithm.WinZipAes256;
zip.Password = Password;
zip.AddFileFromString("ReadMe.txt", "", "This zip file
was created at " & System.DateTime.Now.ToString("F"))
zip.AddDirectory(Me.FolderToZip, "")
zip.Save(Me.OutputZipFile)
End Using
Catch ex1 As Exception
WriteToLog("Zip Exception: " & ex1.ToString())
End Try
 
D

douglas

Thanks!

Cheeso said:
Last I checked, the people behind sharpziplib were still working on
AES encryption/decryption. If you want that NOW you can grab
dotnetzip from http://dotnetzip.codeplex.com . On the other hand if
you will be satisfied with regular ZIP encryption (which is rather
weak) then DotNetZip supports that now, and I guess SharpZipLib
supports it as well.

DotNetZip works with .NET 2.0, VB2005, and lets you create ZIP files
very easily.

Try
Using zip As ZipFile = New ZipFile
zip.Encryption = EncryptionAlgorithm.WinZipAes256;
zip.Password = Password;
zip.AddFileFromString("ReadMe.txt", "", "This zip file
was created at " & System.DateTime.Now.ToString("F"))
zip.AddDirectory(Me.FolderToZip, "")
zip.Save(Me.OutputZipFile)
End Using
Catch ex1 As Exception
WriteToLog("Zip Exception: " & ex1.ToString())
End Try
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top