String Encryption (encoding)
Posted: 16 May 2013 15:03
Hello Everyone...
I am writing a batch file that I would later convert to a exe, but I would like to have a serial key system...
So I thought I could use the "for /f "tokens=3" %%p in ('reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v ProductID') do set "productID=%%p">nul
" command to get windows ProductID and then my batch file could change every, char letter "1" to a string "123" for example...
So if the id was... (example) "123-456-789"
For every char "1" it would change it to "123" or what ever
so it would do every relivant char in the ID string...
Then I would have a whole jumbled up numbers...
123721548424567465465465465465465 for example . I could also use this method to encrypt a password string if a user decides to setup a password for the program, But is would save is in a password.bat on the system and in it would be "set "pass=%pass%"password.bat
Another thing. I could also do a safer method of maybi Writing and Reading and Deleting strings to the reg
Is there a guide to that?
I am writing a batch file that I would later convert to a exe, but I would like to have a serial key system...
So I thought I could use the "for /f "tokens=3" %%p in ('reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v ProductID') do set "productID=%%p">nul
" command to get windows ProductID and then my batch file could change every, char letter "1" to a string "123" for example...
So if the id was... (example) "123-456-789"
For every char "1" it would change it to "123" or what ever
so it would do every relivant char in the ID string...
Then I would have a whole jumbled up numbers...
123721548424567465465465465465465 for example . I could also use this method to encrypt a password string if a user decides to setup a password for the program, But is would save is in a password.bat on the system and in it would be "set "pass=%pass%"password.bat
Another thing. I could also do a safer method of maybi Writing and Reading and Deleting strings to the reg
Is there a guide to that?