EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElPGPWriter.Encrypt

TElPGPWriter     See also    


 

Encrypts ASourceStream stream.

 
 

Declaration

[C#]
    void Encrypt(System.IO.Stream ASourceStream, System.IO.Stream ADestStream, int Count /* = 0 */);

[VB.NET]
    Sub Encrypt(ByVal ASourceStream As System.IO.Stream, ByVal ADestStream As System.IO.Stream, ByVal Count As Integer = 0)

[Pascal]
    procedure Encrypt(ASourceStream, ADestStream : TStream; Count : integer = 0);

[VB6]
    Sub Encrypt(ByVal InStream As IUnknown, ByVal OutStream As IUnknown, ByVal Count As Integer)


[ActiveX]
    HRESULT _stdcall Encrypt( [in] IUnknown * InStream, [in] IUnknown * OutStream, [in] long Count);

[DLL]
    not implemented;
 
 

Parameters

  • ASourceStream (InStream) - stream to be encrypted.
  • ADestStream (OutStream) - resulting stream.
  • InFile - file to be encrypted.
  • OutFile - resulting file.
  • Count - the number of bytes to be read from ASourceStream. If this parameter is 0 the data is read till the end of the stream.
    Default value is 0.
 
 

Description

    This method encrypts the data from ASourceStream and returns result at ADestStream parameter.
    Depending on Compress and Armor property values data can be compressed before encryption and armored (wrapped into base64 envelope) after it.
    Use Count parameter to read specified number of bytes from ASourceStream. Set this parameter value to 0 in order to read all data till the stream end.

[ActiveX]
    Note: Stream parameter expects an object which implements IStream interface.

[Pascal]
    Note: in the Delphi versions older than 7, works only with streams of sizes smaller than 2GB (because of TStream limitation). Use EncryptFile instead.

 
 

See also:     Armor     SymmetricKeyAlgorithm     EncryptAndSign     EncryptAndSignFile     EncryptFiles     Sign    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation