Default CryptoProvider class, implements ICryptoProvider interface.
More...
|
|
| CryptoProvider () |
| | CryptoProvider constructor.
|
| |
| | CryptoProvider (IConfiguration config) |
| | CryptoProvider constructor, initialize object with data from Configuration.
|
| |
| | CryptoProvider (string key, string salt=null) |
| | CryptoProvider constructor, initialize object with given key and salt.
|
| |
| string | Decrypt (string encryptedData) |
| |
| string | Encrypt (string text) |
| |
|
| string | Key [get, set] |
| | Cryptographic key.
|
| |
| string | Salt [get, set] |
| | Cryptographic salt.
|
| |
Default CryptoProvider class, implements ICryptoProvider interface.
◆ CryptoProvider() [1/2]
CryptoProvider constructor, initialize object with data from Configuration.
- Parameters
-
◆ CryptoProvider() [2/2]
| LicenseSpring.CryptoProvider.CryptoProvider |
( |
string |
key, |
|
|
string |
salt = null |
|
) |
| |
CryptoProvider constructor, initialize object with given key and salt.
- Parameters
-
| key | Cryptographic key |
| salt | Cryptographic salt (optional), if not set default salt will be used. |
◆ Decrypt()
| string LicenseSpring.CryptoProvider.Decrypt |
( |
string |
encryptedData | ) |
|
Decrypt given string.
- Parameters
-
| inputString | String to decrypt |
- Returns
- Decrypted string
- Exceptions
-
| System.ArgumentNullException | In case input data is null or empty or Key property is not set. |
| System.IO.InvalidDataException | In case input data is damaged or cannot be read |
| System.InvalidOperationException | In case the method was called without prior setting the Key property. |
Implements LicenseSpring.ICryptoProvider.
◆ Encrypt()
| string LicenseSpring.CryptoProvider.Encrypt |
( |
string |
text | ) |
|
Encrypt given string.
- Parameters
-
| inputString | String to encrypt |
- Returns
- Encrypted string
- Exceptions
-
| System.InvalidOperationException | In case the method was called without prior setting the Key property. |
Implements LicenseSpring.ICryptoProvider.
◆ Key
| string LicenseSpring.CryptoProvider.Key |
|
getset |
◆ Salt
| string LicenseSpring.CryptoProvider.Salt |
|
getset |
The documentation for this class was generated from the following file: