📘 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
GUID
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.
–
MssEncodeNumberToGuids
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.
MssDecodeGuidsToNumber
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.
-1
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.
StringBuilder
Uses Array.FindIndex for matching, which is performant for the small fixed array.
Array.FindIndex
GUID, Encoding, Decoding, Numeric Obfuscation, Reversible Mapping, OutSystems, Security, Data Masking, Utilities
Encoding
Decoding
Numeric Obfuscation
Reversible Mapping
OutSystems
Security
Data Masking
Utilities