West Wind Application Settings for .NET |
wwEncrypt.EncryptString
|
Encrypts a string using Triple DES encryption with a two way encryption key. String is returned as Base64 encoded value.
Syntax: |
public static String EncryptString(String InputString, String EncryptionKey) |
| Return: | String |
| Parameters: |
InputString EncryptionKey |
| Example: | string CryptKey = "Testing"; string WorkString = "Hello big, bad world";' Value = wwEncrypt.EncryptString(WorkString,CryptKey); // *** Should show encrypted value Response.Write(Value); Value = wwEncrypt.DecryptString(Value,CryptKey); // *** Should be Original value Response.Write(Value); |