Discuss this help topic in SecureBlackbox Forum

TElPGPWriter.EncryptAndSignFiles

TElPGPWriter     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This method encrypts and signs multiple files (streams) with data.

Declaration

[C#]
    void EncryptAndSignFiles(TElStringList SourceFileNames, ArrayList SourceStreams, string ADestFileName, System.IO.Stream ADestStream);

[VB.NET]
    Sub EncryptAndSignFiles(ByVal SourceFileNames As TElStringList, ByVal SourceStreams As ArrayList, ByVal ADestFileName As String, ByVal ADestStream As System.IO.Stream)

[Pascal]
    procedure EncryptAndSignFiles(SourceFileNames : TStringList; SourceStreams : TList; const ADestFileName : string; ADestStream : TStream);

[C++]
    void EncryptAndSignFiles(TStringList &SourceFileNames, TList &SourceStreams, const std::string &ADestFileName, TStream &ADestStream);
    void EncryptAndSignFiles(TStringList *SourceFileNames, TList *SourceStreams, const std::string &ADestFileName, TStream *ADestStream);

[PHP]
    void EncryptAndSignFiles(TStringList $SourceFileNames, TList $SourceStreams, string $ADestFileName, TStream $ADestStream)

[Java]
    void encryptAndSignFiles(TElStringList SourceFileNames, ArrayList SourceStreams, String ADestFileName, TElStream ADestStream);

Parameters

  • SourceFileNames (InFiles) - files to be encrypted.
  • SourceStreams - streams with data to be encrypted.
  • ADestFileName (OutFile) - resulting file.
  • ADestStream - resulting stream.

Description

    The list of file names is mandatory. If the list of streams is present, each stream must have the corresponding file name. If the list is filled with streams, those streams will be put to the packed file (TAR archive). In this case the file names (without paths) are used to name the streams in the packed file. If the streams are not specified, the list of file names must contain the fully qualified names of the files which will be opened and stored in the packed file.
    The name of the resulting file is mandatory as it will be used to name the packed TAR file inside of the PGP file. If the resulting stream is specified, the processed data will be stored in this resulting stream. If the stream is not specified, the resulting filename must contain the fully qualified name of the file which will be created/opened and used to store the processed data.
    Depending on Compress and Armor property values data can be compressed before encryption and armored (wrapped into base64 envelope) after it.

See also:     EncryptFiles     SignFiles     EncryptAndSignFile    

Discuss this help topic in SecureBlackbox Forum