app that hashes host's mac address and c.name and submits to server

Hi to all. I want to create a desktop or web app / service that hashes the host's mac address with the computer's name along with other computer attributes (cpu,hdisks,os etc..) and creates an id. Then it sends this id to the server to get stored into a binary file. Now every time the client requests from server , the server gets this generated id from client and authenticates, so it knows it is the same computer. I need to make this in order to create a secure server-client access lock. OS = linux.

I have not done anything similar so any help would be highly appreciated.Are there any ready apps-algorithms that would do sth like that?