I am looking for a way to hash a user id, obtained from a 3rd party service, such that I can use the hash as a primary key.
My understanding is that the usual SHA-512
style algorithms, given an input string that is guaranteed to be unique, are not guaranteed to produce a hash value that is also guaranteed to be unique.
Is there a hashing algorithm that will produce an unique hash?
More specifically is there such an algorithm supported out of the box by NodeJS 10.9 or better