EncryptText

Description:

baEncryptText encrypts a text string.

Platforms:

Windows and Macintosh

Usage:

Result = baEncryptText( String , Key )

Arguments:

String, string.
String is the text to encrypt.
Key is the string to use as the encryption key.

Returns:

String.
Returns the encrypted string.

Examples:

Director:
text = baEncryptText( "MyPassword" , "This is my key" )

Authorware:
test := baEncryptText( "MyPassword" , "This is my key" )
 

Notes:

This function uses an xor routine to encrypt the text. To decrypt the text, use the baDecryptText function using the same key. This will return the original text.

As well as encrypting the text, this function also puts the text through a uuencode type function to ensure that the encrypted string contains only printable characters. This means that the encrypted string will not be the same length as the original string.

The maximum size of the string that can be encrypted is 24000 characters.
 

See also:

baDecryptText