finding a unique string

Hello.
I want to make a program that runs in linux and windows, finding a unique string because of disk, encrypt and store it in a hidden part of the disc, so I can sell my program without the risk of theft. Any idea of codes?

Thank's
Jim
Not sure what you mean by "because of disk". If you are just learning how to program, I would recommend starting with just writing the string to a file and then using some library to encrypt the file. You can then set the permissions on the file to make sure it is hidden. A simple google search of "how to write to a file in x programing language" should give plenty of results.
I mean the following. Opening the program examines the hard drive c: and from the serial number sent an encrypted password, and then saves it to a party operating in a way that can not be broken and be detected.
Topic archived. No new replies allowed.