I have a project and I want to provide the installation code on the client so that the program can run. how to make the installation code using codeigniter ?. as well as the installation code on windows
thank you
I have a project and I want to provide the installation code on the client so that the program can run. how to make the installation code using codeigniter ?. as well as the installation code on windows
thank you
If you want your application to have some kind of codes which application users can use to install or get authenticated for any specific reason. You can create an array of hashes, store it in your database and distribute the code to your users. Read What is the best way to create a random hash/string?
Then
Create an interface in your application which accepts that code, matches it with database and authenticate or reply in success depending on the condition you want to use.
Explaination
Step-1
Create Database table;
hash_table (id(INT), hash(STRING), created_at(TimeStamp), updated_at(TimeStamp), expire(ENUM[Yes,No]))
Step-2
Create Hashes
Use any hashing algorithm to create random hashes, save them in the table above.
Step-3
Create View
Create a view with a form which accepts this hash, post that form to verify
Step-4
Verify
Create a Controller that accepts your post request, get the hash and send it to model function which verifies it from database and return true/false