Icon Encrypt Method

procedure Encrypt(const Password: String; DestStream: TStream;
      EncryptionType: TEncryptionType=etAES128; const Count:
      Integer=0)

Available In: Server Applications

Use this method to encrypt the data in the stream into the destination stream using the specified encryption algorithm. The encryption starts from the stream's current position for the specified count. If the count is 0, then the stream's AvailableSize property is used as the count. The encrypted data is written to the destination stream starting at the destination stream's current position.
Image