Python script to diversify an HID iClass standard key
PyCrypto
You must have the dumped master key in the same folder of the script in a file named masterkey.hex
$ hid-iclass <CSN>
https://www.openpcd.org/dl/HID-iCLASS-security.pdf
https://www.cs.bham.ac.uk/~garciaf/publications/dismantling.iClass.pdf