CryptographyHelperEncode Method |
Function which encode or encrypt a given string based on a private key
Namespace:
WorkflowGen.My.Security
Assembly:
WorkflowGen.My (in WorkflowGen.My.dll) Version: 4.0.0.0 (4.0.0.0)
Syntax public static string Encode(
string originalValue,
string privateKey
)
Public Shared Function Encode (
originalValue As String,
privateKey As String
) As String
Parameters
- originalValue
- Type: SystemString
The string to encode or encrypt - privateKey
- Type: SystemString
The private key to use
Return Value
Type:
StringAn encoded string if the private key is not provided (null or empty). Otherwise an encrypted string.
See Also