Description
Offline license activation probably shouldn't involve a 4 character code for the end user to append to their license code because it's kind of silly and could be susceptible to brute force, should someone find out someone else's license code.
The revision I have in mind is requiring the end user to click to enter an "Offline License Activation" menu, where there are two buttons: one for copying their machine ID to the clipboard (or saving a file containing their machine ID to their machine), and a button to activate the license using a key file.
The key file would need to be generated by the store's website, where they will need a form that accepts either a file or a machine ID, and then the website will need to send a request to the license_activation_refactor
function using the user's machine ID, and the server will need to append -offline-[4 character offline code]
to the end of the license code that is stored for the user. Don't worry, the store should already have access to this value if the user has a license, and if the store has saved their license data in the store's database. The store will also need to sign this request in the same manner that all of the other requests are signed with the store's private key.