C# Class Crisis.Ionic.Zip.ZipCipherStream

A Stream for reading and concurrently decrypting data from a zip file, or for writing and concurrently encrypting data to a zip file.
Inheritance: System.IO.Stream
Show file Open project: teeknofil/Crisis-Wordlist-Generator Class Usage Examples

Public Methods

Method Description
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, System origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
ZipCipherStream ( System s, ZipCrypto cipher, CryptoMode mode ) : System

The constructor.

Method Details

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

public Seek ( long offset, System origin ) : long
offset long
origin System
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

ZipCipherStream() public method

The constructor.
public ZipCipherStream ( System s, ZipCrypto cipher, CryptoMode mode ) : System
s System The underlying stream
cipher ZipCrypto The pre-initialized ZipCrypto object.
mode CryptoMode To either encrypt or decrypt.
return System