Hi there, I'm trying to write a login function that behaves like the latest LoginEx2 in Dahua's NetSDK. The camera replies with the Realm and Random number when prompted with the "hello" frame, and using that 2 numbers the SDK would calculate a 32-byte hash using some digest function. I found this digest algorithm taken from Dahua's ancient Js Web UI :
dahua rpc login
And the thing is, using this digest would give me the exact first 16 bytes of the 32-bytes hash computed by the SDK!! It seems like that the 32 byte hash is a concatenation of 2 MD5 hashes, how ever I have not any clue on how to calculate the second 16 bytes half of the hash. Anyone care to drop some advices?
dahua rpc login
And the thing is, using this digest would give me the exact first 16 bytes of the 32-bytes hash computed by the SDK!! It seems like that the 32 byte hash is a concatenation of 2 MD5 hashes, how ever I have not any clue on how to calculate the second 16 bytes half of the hash. Anyone care to drop some advices?
