Re: Encrypt & Compression a file failed (General questions)
Hi
program code as follow:
Private Sub cmdDecrypt_Click()
Dim srcfile As New FileBlob
Dim destfile As New FileBlob
Set oCrypt = New wodCryptCom
If Check1.Value = 1 Then
oCrypt.Type = TripleDES
oCrypt.InitVector = 123
oCrypt.SecretKey = Now
Else
oCrypt.Type = None
End If
If Check1.Value = 1 Then
oCrypt.Optimized = True
Else
oCrypt.Optimized = False
End If
oCrypt.Compression = GZipCompression
srcfile.FileName = txtSourceDec.Text
destfile.FileName = txtDestDec.Text
oCrypt.Decrypt srcfile, destfile
Set srcfile = Nothing
Set destfile = Nothing
MsgBox Decryption Complete
End Sub
Private Sub cmdEncrypt_Click()
Dim srcfile As New FileBlob
Dim destfile As New FileBlob
Dim a As IStream
Set oCrypt = New wodCryptCom
If Check1.Value = 1 Then
oCrypt.Type = TripleDES
oCrypt.InitVector = 123
oCrypt.SecretKey = Now
Else
oCrypt.Type = None
End If
oCrypt.Compression = GZipCompression
If Check1.Value = 1 Then
oCrypt.Optimized = True
Else
oCrypt.Optimized = False
End If
srcfile.FileName = txtSource.Text
destfile.FileName = txtDest.Text
oCrypt.Encrypt srcfile, destfile
MsgBox Encyption Complete
End Sub
Complete thread:
- Encrypt & Compression a file failed - clement su, 2012-01-02, 08:47
- Re: Encrypt & Compression a file failed - woddrazen, 2012-01-02, 10:02
- Re: Encrypt & Compression a file failed - wodSupport, 2012-01-02, 23:07
- Re: Encrypt & Compression a file failed - clement su, 2012-01-09, 07:49
- Re: Encrypt & Compression a file failed - wodDamir, 2012-01-09, 14:10
- Re: Encrypt & Compression a file failed - woddrazen, 2012-01-11, 18:55
- Re: Encrypt & Compression a file failed - clement su, 2012-01-12, 10:04
- Re: Encrypt & Compression a file failed - woddrazen, 2012-01-12, 10:08
- Re: Encrypt & Compression a file failed - clement su, 2012-01-12, 11:16
- Re: Encrypt & Compression a file failed - woddrazen, 2012-01-12, 15:50
- Re: Encrypt & Compression a file failed - clement su, 2012-01-12, 11:16
- Re: Encrypt & Compression a file failed - woddrazen, 2012-01-12, 10:08
- Re: Encrypt & Compression a file failed - clement su, 2012-01-12, 10:04
- Re: Encrypt & Compression a file failed - woddrazen, 2012-01-11, 18:55
- Re: Encrypt & Compression a file failed - wodDamir, 2012-01-09, 14:10
- Re: Encrypt & Compression a file failed - clement su, 2012-01-09, 07:49
- Re: Encrypt & Compression a file failed - wodSupport, 2012-01-02, 23:07
- Re: Encrypt & Compression a file failed - woddrazen, 2012-01-02, 10:02