The khubId
is the unique identifier which allows the user and system to access a map, topic, or unstructured document.
The following URL is an example for a map:
https://doc.fluidtopics.com/r/ENQRHyDq~oYAqQn5tJAjKA/root
The following URL is an example for an unstructured document:
https://doc.antidot.net/viewer/document/bulroRpfElNnqe8uThmzbQ
The khubId
is a hash of the initial identifier of the map or topic (called originId
) and the sourceId
.
The hash is calculated using the Base64 encoding of the MD5 encryption of the concatenation of these IDs, as follows:
Base64(MD5(originId + "-" + sourceId))
Users can replicate the hash using the following command:
echo -n "$originId-$sourceId" | openssl md5 -binary | base64 | tr '+/' '~_' | tr -d '='
([Convert]::ToBase64String(([System.Security.Cryptography.MD5]::Create().ComputeHash([System.Text.Encoding]::UTF8.GetBytes("$originId-$sourceId"))))).Replace('+', '~').Replace('/', '_').Replace('=', '')