ChecksumCreator

Official Content
This documentation is valid for:

Implements checksum functions.

GenerateChecksum

ChecksumCreator.GenerateChecksum(input, inputType, checksumAlgorithm)
  • Input input: VarChar(256)
  • Input inputType: InputType Domain value
  • Input checksumAlgorithm: ChecksumAlgorithm Domain value
  • Returns VarChar(256) hexadecimal

Calculates the checksum value with the given parameters.

Example1: &checksum = &ChecksumCreator.GenerateChecksum("123456789", InputType.ASCII, ChecksumAlgorithm.CRC8)
Example2: &checksum = &ChecksumCreator.GenerateChecksum("123456789", InputType.TXT, ChecksumAlgorithm.CRC8)
Example3: &checksum = &ChecksumCreator.GenerateChecksum("MTIzNDU2Nzg5", InputType.BASE64, ChecksumAlgorithm.CRC8)
Example4: &checksum = &ChecksumCreator.GenerateChecksum("313233343536373839", InputType.HEX, ChecksumAlgorithm.CRC8)

VerifyChecksum

ChecksumCreator.VerifyChecksum(input, inputType, checksumAlgorithm, checksum)
  • Input input: VarChar(256)
  • Input inputType: InputType Domain value
  • Input checksumAlgorithm: ChecksumAlgorithm Domain value
  • Input checksum: VarChar(256) hexadecimal
  • Returns Boolean true if the checksum is correct

Verifies if the checksum is correct for the input with the given parameters.

Example1: &verification = &ChecksumCreator.VerifyChecksum("123456789", InputType.ASCII, ChecksumAlgorithm.CRC8, "F4")
Example2: &verification = &ChecksumCreator.VerifyChecksum("123456789", InputType.TXT, ChecksumAlgorithm.CRC8, "F4")
Example3: &verification = &ChecksumCreator.VerifyChecksum("MTIzNDU2Nzg5", InputType.BASE64, ChecksumAlgorithm.CRC8, "F4")
Example3: &verification = &ChecksumCreator.VerifyChecksum("313233343536373839", InputType.HEX, ChecksumAlgorithm.CRC8, "F4")