Hardware locks