I generate a hash for some objects of classes based on their memory location (in this case for a websocket object from vapor swift).
Unmanaged.passUnretained(webSocket).toOpaque().hashValue
or:
ObjectIdentifier(webSocket).hashValue
https://stackoverflow.com/a/41666807/10551293 (The answer on how to get the memory location of an object)
I thought I'd use this as an Identifier (endusers could view this). Does this open a possibility for an attack?