Interface ICryptographyProvider
Namespace: DotNetNuke.Services.Cryptography
Assembly: DotNetNuke.dll
Syntax
public interface ICryptographyProvider
Methods
| Improve this Doc View SourceDecryptParameter(String, String)
simple method that uses basic encryption to safely decode parameters.
Declaration
string DecryptParameter(string message, string passphrase)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | the text to be decrypted (decoded). |
| System.String | passphrase | the key to perform the decryption. |
Returns
| Type | Description |
|---|---|
| System.String | decrypted string. |
DecryptString(String, String)
safely decrypt sensitive data.
Declaration
string DecryptString(string message, string passphrase)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | the text to be decrypted. |
| System.String | passphrase | the key to perform the decryption. |
Returns
| Type | Description |
|---|---|
| System.String | decrypted string. |
EncryptParameter(String, String)
simple method that uses basic encryption to safely encode parameters.
Declaration
string EncryptParameter(string message, string passphrase)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | the text to be encrypted (encoded). |
| System.String | passphrase | the key to perform the encryption. |
Returns
| Type | Description |
|---|---|
| System.String | encrypted string. |
EncryptString(String, String)
safely encrypt sensitive data.
Declaration
string EncryptString(string message, string passphrase)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | the text to be encrypted. |
| System.String | passphrase | the key to perform the encryption. |
Returns
| Type | Description |
|---|---|
| System.String | encrypted string. |