next up previous contents
Next: desDecode Up: Methods Previous: md5File   Contents


desEncode

Description

Does DES encode.


Syntax

Encryption.desEncode(key, string);


Parameters

key
String. An unique key used to encode or decode the messages
string
String. The message to encode


Returns

String. You can get the original message by calling the desDecode method with the same key and the returned string value.


Examples

trace(Encryption.desEncode("test",
    "message"));
trace(Encryption.desDecode("test",
    "QrfRWpfYc9Q="));




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.