West Wind Application Settings for .NET |
wwEncrypt.DecryptString
|
Decrypts a string using DES encryption and a pass key that was used for encryption.
Syntax: |
public static String DecryptString(String DecryptString, String EncryptionKey) |
| Return: | String |
| Parameters: |
DecryptString 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); |