Object id generate with MD5

Hi,

is this the way to go in order to generate the object id for the database (Deterministic 32 hex chars (128bit) guid based on MD5 of the object data) ???

UE5 code:

FString USpeckleMesh::CreateHash(FString Data)
{
	FString hmd5 = FMD5::HashAnsiString(*Data);
	UE_LOG(LogTemp, Log, TEXT("NEW HASH is ==== %s"), *hmd5 );
	return hmd5;
}

@moihack
@Jedd
@Luca

References:

Which function is responsible in the C# core for generating the guid ?
https://github.com/specklesystems/speckle-sharp

1 Like

Hi Dimitrios,

Here is the code in Speckle Sharp

And here in python

1 Like