C# Class Volante.Rc4File

Inheritance: Volante.OsFile
Mostra file Open project: kjk/volante Class Usage Examples

Public Methods

Method Description
Rc4File ( String filePath, String key ) : System
Rc4File ( String filePath, String key, bool readOnly ) : System
Read ( long pos, byte buf ) : int
Write ( long pos, byte buf ) : void

Private Methods

Method Description
decrypt ( byte cipherText, int cipherOff, byte clearText, int clearOff, int len ) : void
encrypt ( byte clearText, int clearOff, byte cipherText, int cipherOff, int len ) : void
nextState ( ) : int
setKey ( String key ) : void

Method Details

Rc4File() public method

public Rc4File ( String filePath, String key ) : System
filePath String
key String
return System

Rc4File() public method

public Rc4File ( String filePath, String key, bool readOnly ) : System
filePath String
key String
readOnly bool
return System

Read() public method

public Read ( long pos, byte buf ) : int
pos long
buf byte
return int

Write() public method

public Write ( long pos, byte buf ) : void
pos long
buf byte
return void