<cfx_kmSecurity> cfx_kmSuite
Programming Reference

cfx_kmSecurity contains functions related to security, encryption, hashing, etc.

CheckSum
CRC16
CRC32
Decipher
Encipher
Hash
Help
InternetSum
Version


F=CheckSum

Description
Compute the checksum of a text string. This routine uses Fletcher's checksum.
Returns
Numeric checksum.
Syntax
  <cfx_kmSecurity  F=CheckSum  V=variable  SHOW
      TEXT=text >
Attribute   Description         Required?
TEXT  Any text.  YES


Examples

<cfx_kmSecurity F=CheckSum TEXT="This is a test">
Result:  35321



F=CRC16

Calculate the 16 bit CRC of a text string.

Returns
Numeric 16 bit CRC.
Syntax
  <cfx_kmSecurity  F=CRC16  V=variable  SHOW
      TEXT=text >
Attribute   Description         Required?
TEXT  Any text.  YES


Examples

<cfx_kmSecurity F=CRC16 TEXT="This is a test">
Result:  35093



F=CRC32

Calculate the 32 bit CRC of a text string, using the
Adler algorithm.

Returns
Numeric 32 bit CRC.
Syntax
  <cfx_kmSecurity  F=CRC32  V=variable  SHOW
      TEXT=text >
Attribute   Description         Required?
TEXT  Any text.  YES


Examples

<cfx_kmSecurity F=CRC32 TEXT="This is a test">
Result:  880740245



F=Decipher

Restore text which has been encrypted by the
Encipher function.

Returns
Deciphered (unencrypted) text.
Syntax
  <cfx_kmSecurity  F=Decipher  V=variable  SHOW
      TEXT=enciphered-text >
Attribute   Description         Required?
TEXT  Text string, which has been encoded by Encipher.  YES


Examples

<cfx_kmSecurity F=Decipher CODED="G..Hs%Vk]s16J1">
Result:  This is a test



F=Encipher

Encrypt a text string, using a keyless, 7-bit ASCII (char. 32..127) encryption method. The result is still an ASCII text, i.e. no non-text binary values are introduced. Resulting encoded text can be decrypted using the
Decipher function.

Returns
Encrypted text, in ASCII format.
Syntax
  <cfx_kmSecurity  F=Encipher  V=variable  SHOW
      TEXT=coded >
Attribute   Description         Required?
TEXT  Any text.  YES


Examples

<cfx_kmSecurity F=Encipher V="CodedStr" SHOW
    TEXT="This is a test">
Result:  G..Hs%Vk]s16J1



F=Hash

Calculate a 32 bit integer hash key for the given text string.

Returns
Numeric hash value.
Syntax
  <cfx_kmSecurity  F=Hash  V=variable  SHOW
      TEXT=text >
Attribute   Description         Required?
TEXT  Any text.  YES


Examples

<cfx_kmSecurity F=Hash TEXT="This is a test">
Result:  909600624



F=InternetSum

Calculates a 32-bit CRC of a text string using the InternetSum algorithm.

Returns
Numeric checksum.
Syntax
  <cfx_kmSecurity  F=InternetSum  V=variable  SHOW
      TEXT=text >
Attribute   Description         Required?
TEXT  Any text.  YES


Examples

<cfx_kmSecurity F=InternetSum TEXT="This is a test">
Result:  382