Powered by Zoomin Software. For more details please contactZoomin

OpenEdge ABL API Reference

OpenEdge.Logging.Format.AnonymizedTokenFormat

  • Last Updated: January 15, 2026
  • 2 minute read
    • OpenEdge
    • Documentation
Namespace: OpenEdge.Logging.Format
Type: Class AnonymizedTokenFormat
Parent Classes:
Inherits: OpenEdge.Logging.Format.LogMessageTokenResolver
Implements: OpenEdge.Logging.Filter.ILoggerFilter


Copyright (c) 2018-2019,2021-2022,2024-2025 by Progress Software Corporation. All rights reserved.
File:AnonymizedTokenFormat
Purpose:Anonymises (hashes) specific token values
Author(s):pjudge
Created:2018-11-16
- Default property values are
HashAlgorithm:SHA-256
AnonymizeTokens:CP.QUID,CP.UID
Salt:Base64-encoded UUID
- The anonymised output follows the C crypt format as per https://en.wikipedia.org/wiki/Crypt_(C)
Specifically, Modular Crypt Format (MCF):
lt;id>[
lt;param>=<value>(,<param>=<value>)*][
lt;salt>[
lt;hash>]]
For our purposes this takes the following form:
lt;id>
lt;salt>
lt;b64-hash>
The <id> value represents the hashing algorithm, and is one of
md5:1 - DEPRECATED, should be replaced with sha-256
sha-1:sha1 - FUTURE DEPRECATION, replace with sha-256
sha-256:5
sha-512:6
The <salt> value follows the radix-64 alphabet (DES uses the decoded value)
The <b64-hash> value is a radix-64 encoded result of hashing the password and salt



Method Summary
  Options Name Purpose
  ExecuteFilter (LogEvent) /** Performs implementation-specific filtering for a logger type using a set token pattern. Note that if FIPS is enabled, some algorithms (such as MD5) may raise a runtime error. @param LogEvent The current log event to filter */

Constructor Summary
  Options Name Purpose
  AnonymizedTokenFormat () /* Default constructor configured to use SHA-256 */
  AnonymizedTokenFormat (HashAlgorithmEnum) /* Constructor @param HashAlgorithmEnum The algorithm to use to has token data */
  AnonymizedTokenFormat (HashAlgorithmEnum, character) /* Constructor @param HashAlgorithmEnum The algorithm to use to has token data @param character A CSV list of token to anonymise */

Property Summary
  Options Name Purpose
  CHARACTER AnonymizeTokens
  OpenEdge.Core.HashAlgorithmEnum HashAlgorithm
  CHARACTER Salt


Method Detail
Top

ExecuteFilter (LogEvent)

Purpose: Performs implementation-specific filtering for a logger type using a set token pattern.
Note that if FIPS is enabled, some algorithms (such as MD5) may raise a runtime error.
Parameters:
pEvent OpenEdge.Logging.LogEvent
 


Constructor Detail
Top

AnonymizedTokenFormat ()

/* Default constructor configured to use SHA-256
Top

AnonymizedTokenFormat (HashAlgorithmEnum)

/* Constructor
Parameters:
pAlgorithm OpenEdge.Core.HashAlgorithmEnum
 
Top

AnonymizedTokenFormat (HashAlgorithmEnum, character)

/* Constructor
Parameters:
pAlgorithm OpenEdge.Core.HashAlgorithmEnum
 
pTokens CHARACTER
 


Property Detail
Top

CHARACTER AnonymizeTokens

Returns CHARACTER
 
Top

OpenEdge.Core.HashAlgorithmEnum HashAlgorithm

Top

CHARACTER Salt

Returns CHARACTER
 


TitleResults for “How to create a CRG?”Also Available inAlert