C# Class DarthEncrypt, Socks5

Mostrar archivo Open project: ThrDev/Socks5 Class Usage Examples

Private Properties

Property Type Description
DoTransformFile void
EncryptString string
InitializeComponent void

Public Methods

Method Description
CompressBytes ( byte bytes, int offset, int count ) : byte[]
DarthEncrypt ( ) : System
DecompressBytes ( byte compressed ) : byte[]
DecryptBytes ( byte encryptedBytes ) : byte[]
DecryptFile ( string inFile ) : void

Decrypt files using Rijandel-128 bit managed encryption

Decrypts files

DecryptFile ( string inFile, string outFileName ) : void

Decrypt files using Rijandel-128 bit managed encryption

DecryptFile ( string inFile, string outFileName, string outDirectory ) : void

Decrypt files using Rijandel-128 bit managed encryption

DecryptString ( string encryptedText ) : string

Decrypts encrypted text using Rijandel-128 bit managed encryption

Decrypts text

EncryptBytes ( byte bytearray ) : byte[]
EncryptFile ( string inFile ) : void

Encrypts file

EncryptFile ( string inFile, string outFileName ) : void

Encrypts file

EncryptFile ( string inFile, string outFileName, string outDirectory ) : void

Encrypts file

Private Methods

Method Description
DoTransformFile ( string inFile, TransformType, aType, string newFileName, string alternativeDirectory ) : void
EncryptString ( string plainText ) : string
InitializeComponent ( ) : void

Method Details

CompressBytes() public method

public CompressBytes ( byte bytes, int offset, int count ) : byte[]
bytes byte
offset int
count int
return byte[]

DarthEncrypt() public method

public DarthEncrypt ( ) : System
return System

DecompressBytes() public method

public DecompressBytes ( byte compressed ) : byte[]
compressed byte
return byte[]

DecryptBytes() public method

public DecryptBytes ( byte encryptedBytes ) : byte[]
encryptedBytes byte
return byte[]

DecryptFile() public method

Decrypt files using Rijandel-128 bit managed encryption
Decrypts files
public DecryptFile ( string inFile ) : void
inFile string The filename
return void

DecryptFile() public method

Decrypt files using Rijandel-128 bit managed encryption
public DecryptFile ( string inFile, string outFileName ) : void
inFile string The filename
outFileName string Filename to output as (Only in local directory)
return void

DecryptFile() public method

Decrypt files using Rijandel-128 bit managed encryption
public DecryptFile ( string inFile, string outFileName, string outDirectory ) : void
inFile string The filename
outFileName string Filename to output as
outDirectory string Directory to output file to
return void

DecryptString() public method

Decrypts encrypted text using Rijandel-128 bit managed encryption
Decrypts text
public DecryptString ( string encryptedText ) : string
encryptedText string The text to decrypt
return string

EncryptBytes() public method

public EncryptBytes ( byte bytearray ) : byte[]
bytearray byte
return byte[]

EncryptFile() public method

Encrypts file
public EncryptFile ( string inFile ) : void
inFile string The file path of original file
return void

EncryptFile() public method

Encrypts file
public EncryptFile ( string inFile, string outFileName ) : void
inFile string The file path of the original file
outFileName string Filename to output as
return void

EncryptFile() public method

Encrypts file
public EncryptFile ( string inFile, string outFileName, string outDirectory ) : void
inFile string The file path of the original file
outFileName string Filename to output as
outDirectory string Directory to output file
return void