Posted  by 

How To Create A Serial Key In Php

I have an Excel spreadsheet with information I want to catalogue. I would like to create a serial number for each entry. Certain rows are blank, however, and the function would need to ignore the blank rows. Create a Keypair. Use the following steps, if you skipped the PGP Key Assistant keypair creation during installation, or if you would like to create a new keypair. Open Encryption Desktop. Select the PGP Keys Control box. Click the File > New > PGP Key. When the Key Generation Assistant appears, click Next. PHP Report Maker Crack is an easy to use software that can generate dynamic PHP web reports from MySQL, Access, SQL Server, PostgreSQL and Oracle database. The PHP Report Maker Serial Key provides you a complete set of tools for creating dynamic PHP web pages quickly and easily.

Active3 years, 6 months ago

Can someone tell me if there's a better way doing this?

  • I am trying to generate a Serial number (function Taken from a Post onthis site )
  • Check in my database if this Serial exist, if it does,regenerate another
  • Insert Unique serial into Db

How To Create A Serial Killer

AwenaAwena
4523 gold badges15 silver badges37 bronze badges

5 Answers

You are not calling your checkifSerialexist() function nor are you sending the serial (and the database connection..) as a parameter.

It should be something like:

jeroenjeroen
83.8k18 gold badges102 silver badges125 bronze badges

it's hard to say with the provided code, but my usual logic for unique generation is as follows:

i always make my check functions (e.g. serialUnique) return a boolean.

xeroxero
Key

It seems like your function that checks if the serial exists does not have the serial you generated earlier.

Depending on where your function is, it might not have access to the variable. Pass it as a parameter and return true or false from the checkIfSerialExists function.

}

Then from where you want to add it to the database, do something like

Matthias SMatthias S
1,6031 gold badge11 silver badges18 bronze badges
Pmpr
10.8k8 gold badges52 silver badges78 bronze badges
How to create a serial number in php
Gabriel GlauberGabriel Glauber

this is just the simply way, you can apply more secure if you need, you can use sha1(), microtime() combined with anothers functions and unique user data, and check if serial generated exsists in your data base.. litle bit more secure, like:

This exit: XXXX-XXXX-XXXX-XXXX serial pattern

Gabriel GlauberGabriel Glauber

Not the answer you're looking for? Browse other questions tagged php or ask your own question.

How To Create License Key For A Software In Php

Serial Key Idm

(1) (Reply) (Go Down)

How Do I Create A Licenses Key For My Application by Kirusky4life(f): 6:11am On Dec 21, 2012
Av been in the programming line for 3yrs now. As God may have. It has been wonderful. Now i just finished building an application using visual studio. Vb.net to b precise and its a windows application. I want to assign a licenses key to it so dat it wl be use during installation. Then if u don't have a licenses key, it wl allow you use the product for 15 days, den it deactivate the product until you insert a licenses key. This is my major headache right. Please, any help will be appreciated. Thanks in advance my fellow programmer. We network the world.
Re: How Do I Create A Licenses Key For My Application by avosoft: 8:29am On Dec 21, 2012
Kirusky4life: Av been in the programming line for 3yrs now. As God may have. It has been wonderful. Now i just finished building an application using visual studio. Vb.net to b precise and its a windows application. I want to assign a licenses key to it so dat it wl be use during installation. Then if u don't have a licenses key, it wl allow you use the product for 15 days, den it deactivate the product until you insert a licenses key. This is my major headache right. Please, any help will be appreciated. Thanks in advance my fellow programmer. We network the world.

you need to learn cryptography and hashing, google should be a starting point
Re: How Do I Create A Licenses Key For My Application by ABAboi: 11:02am On Dec 21, 2012
You will need to get the hardware details of each computer the software is installed.
encrypt it and check for modification each time the software is started.
you use Mac address and append unique codes to it

1 Like

Download free license key (activation code or serial) for Avast antivirus 2019 and get the full protection until 2026. Just use code AGHSPE-982YJJ-5YU56N. (activation code or serial) for Avast antivirus 2019 and get the full protection until 2026. Just use code AGHSPE-982YJJ-5YU56N. Get the serial key for Avast Free Antivirus 2019 valid until March 2026. Just use a code NXNW5H-4AKMF2-4EU5F2 and enjoy the free protection. Get the serial key for Avast Free Antivirus 2019 valid until March 2026. Just use a code NXNW5H-4AKMF2-4EU5F2 and enjoy the free protection. The followings are the step-by-step instructions for Avast Antivirus Free 2018 Serial Key that will remain valid until March 2019. NXNW5H-4AKMF2-4EU5F2 is the serial code for the free version that you may use for your personal purposes. Avast virus guard serial key.

Re: How Do I Create A Licenses Key For My Application by Kirusky4life(f): 12:34pm On Dec 21, 2012
@Ababi, pls bro. is there a code for me to get the system mac address of each system.
Re: How Do I Create A Licenses Key For My Application by Ymodulus: 3:58pm On Dec 21, 2012
ABAboi: You will need to get the hardware details of each computer the software is installed.
encrypt it and check for modification each time the software is started.
you use Mac address and append unique codes to it

mind u mac address can be tampered with
Re: How Do I Create A Licenses Key For My Application by Ymodulus: 4:00pm On Dec 21, 2012
Re: How Do I Create A Licenses Key For My Application by WhiZTiM(m): 5:09pm On Dec 21, 2012
Using a Mac Address of a NIC is a pretty lame idea.. The user can simply change MAC addresses to that of his friend and thus hav d same key.
Learn Cryptography, hashing and salting as mentioned earlier, you may use the windows registry (Software trick-locks)
the most convenient way to do it is via software locks but it offers least protection. For higher protection, you may use HARDWARE locks, like generating a license key based on the Partition ID of Windows Hard Disk partion.
For example, the ID is '2AC7xxx..etc' then you have 2 algorithm.
The 1st algorithm ALGO1, salts it via methodic process(there are many types of salting techniques.) by probably converting all Characters to ASCII, do cyclic addition (with modulo). If the ascii was
51, 97, 99, 56, x, x, x etc. You may now do.
5+51, 3+97, 1+99, -1+56, 0+x, . 2+x, ..4+x. ..etc.
(in sequence of 2. If adding factor is less than 0, change starting point, and direction)
then send the salted value to you the software maker.
You use the 2nd algorithm ALGO2 to transform that into a unique key.
You now send the user that key. And the software(having ALGO2) uses it to verify equality.
Though its quite expensive for Nigerian market if you do not have a website or the clients lacks internet.
You can have them SMS or mail you!
Thats that! But for offline licensing, you cant enjoy that easily.. But you still have options, like Software locks, .. Hiding and masking(using different entries under different unrelated names) registration key and installation time in the Windows registry is the easiest.
.. ... Regards,
. . . . . . . . . . WhiZTiM.

2 Likes

Re: How Do I Create A Licenses Key For My Application by Nobody: 8:31am On Dec 22, 2012
no matter the logic you apply, win32dasm and numerous hex editors exists to bypass the license logic
any solution that does not check a remote server for license can be cracked
the host file.
Re: How Do I Create A Licenses Key For My Application by kodewrita(m): 4:17pm On Dec 22, 2012
You could use the FlexLM API for VB applications. There are countless software license manager APIs floating around but FlexNet(just mentioned) is one of the most popular. There are also some open source license managers.
I am assuming you will be interested in either maintaining your own license server for end-users to authenticate against it or you could rely on any of the numerous cloud-based license management services.
Start your search here: http://en.wikipedia.org/wiki/License_manager
Regards.
Re: How Do I Create A Licenses Key For My Application by ABAboi: 2:52am On Dec 29, 2012
Fact remains that most licensing process can be hacked.
I am assuming that the project he is working on is not as sophisticated as you guys think.
Kirusky, try using the My.computer.X.X Namespace to get various computer properties.
Encrypt the values and save it locally. Validate the file content with the computer property each time you execute your program

Download internet download manager 6.07 free full version with serial key. 1 Like

Re: How Do I Create A Licenses Key For My Application by Kirusky4life(f): 11:04am On Jan 02, 2013
ABAboi: Fact remains that most licensing process can be hacked.
I am assuming that the project he is working on is not as sophisticated as you guys think.
Kirusky, try using the My.computer.X.X Namespace to get various computer properties.
Encrypt the values and save it locally. Validate the file content with the computer property each time you execute your program
. Tanks guy am very grateful. But am not a he. Am a she. Happy nu yr
Re: How Do I Create A Licenses Key For My Application by CodeHouse: 9:12am On Apr 02, 2013
Using a server time stamp would work, get user hardware ID (Board serial), Current Server Date and other info you think is best(Do Not use Hard Disk serial because that changes at every format..I could even develop a small app to change Hard Disk serial without formatting the drive)and SEND to server for stamping.Each time the application is launched, it confirms with the server before use. The disadvantage however, is the fact that users will require internet to use your app. Personally I don't do web things..I am strictly a desktop app developer, but all my apps have cloud capabilities. I had to develop a keygen which will combine the username of the PC and board serial to generate a unique serial key which cannot be used on another PC.
Re: How Do I Create A Licenses Key For My Application by Javanian: 10:54am On Apr 02, 2013
webdezzi: no matter the logic you apply, win32dasm and numerous hex editors exists to bypass the license logic
any solution that does not check a remote server for license can be cracked
the host file.

GBAM!!!
Re: How Do I Create A Licenses Key For My Application by Danyl(m): 11:45am On Apr 02, 2013
CodeHouse: Using a server time stamp would work, get user hardware ID (Board serial), Current Server Date and other info you think is best(Do Not use Hard Disk serial because that changes at every format..I could even develop a small app to change Hard Disk serial without formatting the drive)and SEND to server for stamping.Each time the application is launched, it confirms with the server before use. The disadvantage however, is the fact that users will require internet to use your app. Personally I don't do web things..I am strictly a desktop app developer, but all my apps have cloud capabilities. I had to develop a keygen which will combine the username of the PC and board serial to generate a unique serial key which cannot be used on another PC.
pls how do i get the hardware board ID & username ppty and how do u integrate those values for producn a unique serialID.
A code snippet wil help
2. Which installer creator could b usd 4ds unique serialID.?
Re: How Do I Create A Licenses Key For My Application by gu7S05: 11:59am On Apr 02, 2013
I have successfully made an executable program using html code,it has features like serial key,licence number and validity period.No need of passing thru d hurdles of syntax error!..besides you're using VB,it wud hav been more easier if u were using delphi IDE.
Re: How Do I Create A Licenses Key For My Application by CodeHouse: 12:22pm On Apr 03, 2013
@Danyl what language are you using? one of the best way to curb piracy of your app (offline apps) is to call users or have them call you for the serial key.that way you'd have a database of your clients. I believe your application is a desktop app (not html or any site things..)? Do not bother about the keygen..I will compile a small app, which will be integrated into your application as the registration module (this registration module will automatically get the username of users pc and the hardware ID. Users will call(toll free, I believe) or use short code sms..which ever way to get the key to activate the application..They will send you the username and hardware ID from which you will generate a serial key (Note: serial keys generated is unique and do not repeat,therefore two users can't use one serial key since it is system generated and uses MD5 encryption algorithm) Note: I am going to be using my compiler to dev a keygen for you (I have been using it over the years and it is confirmed to work)
2. I believe with whatever language you are using, you could develop your own installer. You do not need any installer to create the unique ID, The keygen would solve that problem. But if you can't code an installer, you could use inno setup to distribute your app.
Here's a screen shot of my serial generator! There are two parts to it, first part is integrated in your app, which is to automatically get the username of users pc and unique hardware ID, after which they are to send you that so as for you to use the serial keygen (second part) to generate a unique serial key for the application - 30days, 90 days, or full version

1 Like

Re: How Do I Create A Licenses Key For My Application by Danyl(m): 7:11pm On Apr 05, 2013
@codehouse, thanks for you response. Iam using Java to develop and am also using Innoset compiler but i dont really like the unique ID being generated by Innosetup compiler but i will like to have this your unique serial ID generator and how to integrate it into my application.
Re: How Do I Create A Licenses Key For My Application by CodeHouse: 5:54pm On May 09, 2013
Hi mate! Sorry it took this long to reply to your post, recently.last month precisely, I got roobed of my laptop (.all my apps, source codes and development tools all gone..ufff!) If your app is a window based app, with native .exe or msi extension.do send me just d name you intend to use for your app, so I can write a front end for it which will include the serial module. My mail paulodiete@gmail.com
Re: How Do I Create A Licenses Key For My Application by Danyl(m): 10:19am On May 10, 2013
CodeHouse: Hi mate! Sorry it took this long to reply to your post, recently.last month precisely, I got roobed of my laptop (.all my apps, source codes and development tools all gone..ufff!) If your app is a window based app, with native .exe or msi extension.do send me just d name you intend to use for your app, so I can write a front end for it which will include the serial module. My mail paulodiete@gmail.com
really sori 4ur loss,i'll send u a mail.. I nid it as wel. My email addr is: danoxgroup@gmail.com & olabiyi007@gmail.com.

(1) (Reply)

Whatsapp Group For JAVA Enthusiasts, Learners And Professionals / Hope For C++ Newbies: Gui Toolkits / Junit: How To Set Classpath On Windows Xp

(Go Up)

How To Create A Serial Key In Php File

Sections: politics(1)businessautos(1)jobs(1)careereducation(1)romancecomputersphonestravelsportsfashionhealth
religioncelebstv-moviesmusic-radioliteraturewebmastersprogrammingtechmarket

Links: (0)(1)(2)(3)(4)(5)(6)(7)(8)(9)

Nairaland - Copyright © 2005 - 2019 Oluwaseun Osewa. All rights reserved. See How To Advertise. 92
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.