A method for authenticating a component in an electric machine, the component comprising a set of parts (202, 204, 206, 208), the method comprising: fetching from each part, of said set of parts, (202, 204, 206, 208), using a controller, identification data associated with each part (202, 204, 206, 208); performing a first verification step on the fetched identification data for each part (202, 204, 206, 208) by searching a database that is pre-loaded with identification data of a plurality of parts, where the first verification step is successful if the fetched identification data for each part (202, 204, 206, 208) is found in the database and the first verification step is unsuccessful if the fetched identification data for each part (202, 204, 206, 208) is not found in the database; performing a second verification step on the fetched identification data for each part (202, 204, 206, 208), in response to the first verification step being successful, the second verification step including comparing the fetched identification data for each part (202, 204, 206, 208) with data from the database and verifying, based on the fetched identification data for each part (202, 204, 206, 208), whether the database includes a record that the parts (202, 204, 206, 208) were assembled or manufactured together as the component, where the second verification step is successful if the database includes a record that the parts (202, 204, 206, 208) were assembled or manufactured together as the component and the second verification step is unsuccessful if the database does not include a record that the parts (202, 204, 206, 208) were assembled or manufactured together as the component; and in response to one of the first verification step and the second verification step being unsuccessful, issuing by the controller, a command to disable the electric machine. fetching from each part, of said set of parts, (202, 204, 206, 208), using a controller, identification data associated with each part (202, 204, 206, 208); performing a first verification step on the fetched identification data for each part (202, 204, 206, 208) by searching a database that is pre-loaded with identification data of a plurality of parts, where the first verification step is successful if the fetched identification data for each part (202, 204, 206, 208) is found in the database and the first verification step is unsuccessful if the fetched identification data for each part (202, 204, 206, 208) is not found in the database; performing a second verification step on the fetched identification data for each part (202, 204, 206, 208), in response to the first verification step being successful, the second verification step including comparing the fetched identification data for each part (202, 204, 206, 208) with data from the database and verifying, based on the fetched identification data for each part (202, 204, 206, 208), whether the database includes a record that the parts (202, 204, 206, 208) were assembled or manufactured together as the component, where the second verification step is successful if the database includes a record that the parts (202, 204, 206, 208) were assembled or manufactured together as the component and the second verification step is unsuccessful if the database does not include a record that the parts (202, 204, 206, 208) were assembled or manufactured together as the component; and in response to one of the first verification step and the second verification step being unsuccessful, issuing by the controller, a command to disable the electric machine.