EldoS | Feel safer!

Software components for data protection, secure storage and transfer

File Decryption - VBScript - Please Help !

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#19084
Posted: 02/15/2012 11:25:07
by Vsevolod Ievgiienko (Team)

You should set ElPGPReader.OutputFile property.
#19085
Posted: 02/15/2012 11:27:07
by Harsh Patel (Priority Standard support level)
Joined: 02/08/2012
Posts: 14

Oh and I've tried
PGPReader.OutputFile

But this returns a message
Object doesn't support this property or method: 'OutputFile'
#19086
Posted: 02/15/2012 11:31:59
by Harsh Patel (Priority Standard support level)
Joined: 02/08/2012
Posts: 14

Sorry Ignore that last post...

I have the code as follows:

Code
strTarget = "D:\Data\TestFileDec.txt"

PGPEncFile.LoadFromFiles PGPPubEncKeyC,PGPPrivEncKeyC,True
PGPReader.DecryptingKeys = PGPEncFile
PGPReader.KeyPassphrase = "password"
PGPReader.DecryptAndVerifyFile strSource
PGPReader.OutputFile = strTarget


No errors, but I see no file generated ?

Thanks
#19087
Posted: 02/15/2012 11:32:19
by Vsevolod Ievgiienko (Team)

Then try to handle ElPGPReader.OnRequestOutputFile event.
#19088
Posted: 02/15/2012 11:37:20
by Harsh Patel (Priority Standard support level)
Joined: 02/08/2012
Posts: 14

Sorry (not a hardcore developer). not quite sure what you mean by

try to handle ElPGPReader.OnRequestOutputFile event

OnRequestOutputFile is not an option(property I see)

Thanks
#19089
Posted: 02/15/2012 11:41:00
by Vsevolod Ievgiienko (Team)

You can use \EldoS\SecureBlackbox.AX\Samples\VB6\SBB8\OpenPGPBlackbox\PGPFiles\Reader sample project as a reference.
#19090
Posted: 02/15/2012 11:43:53
by Harsh Patel (Priority Standard support level)
Joined: 02/08/2012
Posts: 14

OK - I got it !!

I should be setting the OutputFile before I decrypt and Verify !

Superb help.... Thanks again !
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 3493 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!