-
Notifications
You must be signed in to change notification settings - Fork 2
String.Encription
Tomáš Bouda edited this page Nov 22, 2017
·
1 revision
Provides methods for string hashing
Supported hash algorithms
🔹 Method Extensions.String.Encription.Hasher.ComputeHash(System.String,Extensions.String.Encription.Hasher.eHashType)
Computes the hash of the string using a specified hash algorithm
Param | Description |
---|---|
input | The string to hash |
hashType | The hash algorithm to use |
Returns: The resulting hash or an empty string on error
Provides methods for string encryption/decryption
Encrypts a string using the supplied key. Encoding is done using RSA encryption.
Param | Description |
---|---|
stringToEncrypt | String that must be encrypted. |
key | EncryptionKey. |
Returns: A string representing a byte array separated by a minus sign.
Exception | Description |
---|---|
System.ArgumentException |
Occurs when stringToEncrypt or key is null or empty. |
Decrypts a string using the supplied key. Decoding is done using RSA encryption.
Param | Description |
---|---|
key | DecryptionKey. |
Returns: The decrypted string or null if decryption failed.
Param | Description |
---|---|
stringToDecrypt |
Exception | Description |
---|---|
System.ArgumentException |
Occurs when stringToDecrypt or key is null or empty. |