Encodes and decodes numeric values using a fixed mapping between digits (0–9) and predefined GUIDs, allowing for reversible obfuscation of numeric data.
Obscure internal numeric IDs in a non-predictable format.
Provide reversible representations of numbers.
Serve as an educational tool for encoding/decoding methods.
10 predefined GUIDs, each mapped to digits 0–9.
These GUIDs remain fixed for consistent encoding/decoding.
EN DASH (–) is used to separate individual GUIDs in the encoded string.
MssEncodeNumberToGuids
Description: Encodes a non-negative integer into a GUID sequence.
Parameters:
ssnumericValue (long) – The number to encode.
ssnumericValue (long)
ssguidSequence (out string) – The resulting encoded GUID string.
ssguidSequence (out string)
Notes:
Returns empty string for negative/invalid inputs.
Only digits [0–9] are valid inputs.
MssDecodeGuidsToNumber
Description: Decodes a GUID sequence back into the original number.
ssguidSequence (string) – The encoded string.
ssguidSequence (string)
ssnumericValue (out long) – The decoded number.
ssnumericValue (out long)
Returns -1 if input is malformed or contains invalid GUIDs.
-1
Safely represent numeric IDs in URLs/logs.
Create tamper-resistant codes.
Integrate with OutSystems or .NET for utility purposes.
Uses StringBuilder for efficient string operations.
StringBuilder
Uses Array.FindIndex for digit-to-GUID lookups – optimal for small arrays.
Array.FindIndex
GUID, Encoding, Decoding, Numeric Obfuscation, Reversible Mapping, OutSystems, Security, Data Masking, Utilities
GUID
Encoding
Decoding
Numeric Obfuscation
Reversible Mapping
OutSystems
Security
Data Masking
Utilities
🔁 Versions
Version 1 (Default):Standard encoding behavior—each digit is mapped directly to a corresponding GUID. Leading zeros are not preserved in the decoded result.
Version 2 (Support for Leading Zeros like "00"):Special handling when input starts with "00" or other significant leading zeros. This version retains or encodes the structure to allow accurate reconstruction of such values after decoding.
"00"
📘 GUID Digit Encoder – Full Documentation
The GUID Digit Encoder is a utility that encodes numeric values into a sequence of GUIDs and decodes them back to their original form. It uses a fixed mapping between digits (0–9) and predefined GUIDs, enabling reversible obfuscation of numeric data.
0–9
This component is designed for:
Obscuring numeric IDs in a non-sequential, non-predictable format.
Creating reversible representations of numbers.
Demonstrating basic encoding and decoding principles for educational or utility purposes.
A fixed array of 10 GUIDs is used, where each GUID corresponds to a digit from 0 to 9.
0
9
A special character (–, EN DASH) is used to separate GUIDs in the encoded string.
–
Encodes a non-negative integer by converting each digit to its mapped GUID.
ssnumericValue (long): The input number to encode.
ssnumericValue
long
ssguidSequence (out string): The resulting GUID sequence string.
ssguidSequence
out string
Returns an empty string if the input is negative or invalid.
Only digits between 0 and 9 are valid.
Decodes a GUID sequence string back into the original numeric value.
ssguidSequence (string): The encoded GUID string.
string
ssnumericValue (out long): The decoded numeric value.
out long
Returns -1 if any GUID is invalid or if the input string is empty or malformed.
Securely representing internal numeric identifiers in URLs or logs.
Creating human-unfriendly codes to discourage tampering or guessing.
Utility component in OutSystems or .NET-based applications.
Uses efficient StringBuilder for string manipulation.
Uses Array.FindIndex for matching, which is performant for the small fixed array.