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);
See also:

Class wwEncrypt


Last Updated: 1/28/2007 | Send topic feedback