Méthode | Description | |
---|---|---|
CryptoHelper ( ) : System | ||
CryptoHelper ( CryptoTypes CryptoType ) : System | ||
Decrypt ( string inputText ) : string |
decrypts a string
|
|
Decrypt ( string inputText, CryptoTypes cryptoType ) : string |
decrypts a string acc. to the decryption type
|
|
Decrypt ( string inputText, string password ) : string |
decrypts a string using a user defined password key
|
|
Decrypt ( string inputText, string password, CryptoTypes cryptoType ) : string |
decrypts a string acc. to decryption type and user defined password key
|
|
Encrypt ( string inputText ) : string |
Encrypt a string
|
|
Encrypt ( string inputText, CryptoTypes cryptoType ) : string |
Encrypt string acc. to cryptoType
|
|
Encrypt ( string inputText, string password ) : string |
Encrypt string with user defined password
|
|
Encrypt ( string inputText, string password, CryptoTypes cryptoType ) : string |
Encrypt string acc. to cryptoType and with user defined password
|
Méthode | Description | |
---|---|---|
EncryptDecrypt ( byte inputBytes, bool Encrpyt ) : byte[] |
performs the actual enc/dec.
|
|
calculateNewKeyAndIV ( ) : void |
calculates the key and IV acc. to the symmetric method from the password key and IV size dependant on symmetric method
|
|
getCryptoTransform ( bool encrypt ) : ICryptoTransform |
returns the symmetric engine and creates the encyptor/decryptor
|
|
selectAlgorithm ( ) : |
returns the specific symmetric algorithm acc. to the cryptotype
|
public CryptoHelper ( CryptoTypes CryptoType ) : System | ||
CryptoType | CryptoTypes | |
Résultat | System |
public Decrypt ( string inputText ) : string | ||
inputText | string | string to decrypt |
Résultat | string |
public Decrypt ( string inputText, CryptoTypes cryptoType ) : string | ||
inputText | string | string to decrypt |
cryptoType | CryptoTypes | type of decryption |
Résultat | string |
public Decrypt ( string inputText, string password ) : string | ||
inputText | string | string to decrypt |
password | string | password to use when decrypting |
Résultat | string |
public Decrypt ( string inputText, string password, CryptoTypes cryptoType ) : string | ||
inputText | string | string to decrypt |
password | string | password key used to decrypt |
cryptoType | CryptoTypes | type of decryption |
Résultat | string |
public Encrypt ( string inputText ) : string | ||
inputText | string | text to encrypt |
Résultat | string |
public Encrypt ( string inputText, CryptoTypes cryptoType ) : string | ||
inputText | string | text to encrypt |
cryptoType | CryptoTypes | type of encryption |
Résultat | string |
public Encrypt ( string inputText, string password ) : string | ||
inputText | string | text to encrypt |
password | string | password to use when encrypting |
Résultat | string |
public Encrypt ( string inputText, string password, CryptoTypes cryptoType ) : string | ||
inputText | string | text to encrypt |
password | string | password to use when encrypting |
cryptoType | CryptoTypes | type of encryption |
Résultat | string |