wwEncryption::EncryptString

Encrypts a string with a pass phrase using TripleDES encryption.

o.EncryptString(lcInput, lcEncryptionKey)

Return Value

Encrypted string. String is a base64 encoded of the binary TripleDES encoded data.

Parameters

lcInput
The string to encrypt.

lcEncryptionKey
Optional - A pass-phrase used to encrypt the string.

If this string is not set the default value set in the DLL is used. You can set the global default value at application startup using wwEncryption::SetEncryptionKey

Example

lcOriginal = "Test String"
lcSecret = "seekrit10!"
? lcOriginal

lcEncrypted =  o.EncryptString(lcOriginal,lcSecret)
? lcEncrypted

lcDecrypted =  o.DecryptString(lcEncrypted,lcSecret)
? lcDecrypted

See also:

Class wwEncryption | wwEncryption::DecryptString

© West Wind Technologies, 1996-2019 • Updated: 11/04/16
Comment or report problem with topic