Property | Type | Description | |
---|---|---|---|
UpdateKeys | void | ||
ZipCrypto | System |
Method | Description | |
---|---|---|
DecryptMessage ( byte cipherText, int length ) : byte[] |
Call this method on a cipher text to render the plaintext. You must first initialize the cipher with a call to InitCipher.
|
|
EncryptMessage ( byte plainText, int length ) : byte[] |
This is the converse of DecryptMessage. It encrypts the plaintext and produces a ciphertext.
|
|
ForRead ( string password, |
||
ForWrite ( string password ) : |
||
InitCipher ( string passphrase ) : void |
This initializes the cipher with the given password. See AppNote.txt for details.
After the keys are initialized, then you can use the cipher to encrypt the plaintext. Essentially we encrypt the password with the keys, then discard the ciphertext for the password. This initializes the keys for later use. |
Method | Description | |
---|---|---|
UpdateKeys ( byte byteValue ) : void | ||
ZipCrypto ( ) : System |
The default constructor for ZipCrypto. This class is intended for internal use by the library only. It's probably not useful to you. Seriously. Stop reading this documentation. It's a waste of your time. Go do something else. Check the football scores. Go get an ice cream with a friend. Seriously. |
public DecryptMessage ( byte cipherText, int length ) : byte[] | ||
cipherText | byte | The encrypted buffer. |
length | int | /// The number of bytes to encrypt. /// Should be less than or equal to CipherText.Length. /// |
return | byte[] |
public EncryptMessage ( byte plainText, int length ) : byte[] | ||
plainText | byte | The plain text buffer. |
length | int | /// The number of bytes to encrypt. /// Should be less than or equal to plainText.Length. /// |
return | byte[] |
public static ForRead ( string password, |
||
password | string | |
e | ||
return |
public static ForWrite ( string password ) : |
||
password | string | |
return |
public InitCipher ( string passphrase ) : void | ||
passphrase | string | /// The passphrase for encrypting or decrypting with this cipher. /// |
return | void |