Discuss this help topic in SecureBlackbox Forum
Create self-extracting (SFX) OpenPGP archives
OpenPGPBlackbox supports creation of self-extracting protected archives, which are basically Windows PE executable files with all the protected data embedded in them. The self-extracting option is useful where you need to send an encrypted or signed file to a system which has no OpenPGP software installed. SFX files contain all the OpenPGP functionality needed to process the protected data, and are capable of decrypting data themselves without using any third-party OpenPGP software.
Creating self-extracted archives is virtually no different to creation of generic protected OpenPGP files and is performed with the same TElPGPWriter class. In addition to settings you normally tune-up (algorithms, file name, timestamp), you will also need to adjust the following properties:
pgpWriter.StubSource = SBPGP.TSBPGPStubSource.ssFile; pgpWriter.StubName = @"C:\pgp\sbconstb.exe"; // the default console stub provided with SecureBlackboxIf you set StubSource to ssStream, you need to handle TElPGPWriter.OnGetStubStream event.
pgpWriter.SFXEnabled = true;
pgpWriter.SFXCopyright = "(C) Doors and Witches, Inc."; pgpWriter.SFXTitle = "Doors and Witches";
How To articles about file encryption and signing with OpenPGP