Hash the device code using SHA-1