[Skip to main content](#vessel-content)

#   Possible to Create a Custom Serial Number?

##

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7448-mstace "View MSTACE's Profile") Topic Author
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

11 years 5 months ago [\#204194](#204194) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  *[Possible to Create a Custom Serial Number?](/forum/15-general-talk-about-hikaserial/877405-possible-to-create-a-custom-serial-number#204194 "I have a software package that I wrote that is downloadable from a website. I was using a VirtueMart hack to create an md5 Hash that was turned into a Serial # which could then be entered into the program to licence it.  The output looks something like this: Joe Smith 4E01-D731-2A87-FA89-FA12-D188-0429-B890-00 I have attached a screenshot of the licensing screen that is in the software package so you get the idea.  The PHP code in VirtueMart is similar to:  A version of this is also inside the software package in order to validate the hash.  Would I be able to do something like this in HikaSerial? I use HikaShop exclusively now and would like to revamp my own site to use HikaShop.  Thank you.")* was created by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")*

I have a software package that I wrote that is downloadable from a website.
I was using a VirtueMart hack to create an md5 Hash that was turned into a Serial # which could then be entered into the program to licence it.

The output looks something like this:
Joe Smith
4E01-D731-2A87-FA89-FA12-D188-0429-B890-00
I have attached a screenshot of the licensing screen that is in the software package so you get the idea.
[ ![Voila&#95;Capture&#95;2015-06-09&#95;04-02-31&#95;pm.png](/forum/attachment/24815) ](/forum/attachment/24815 "...4-02-31&#95;pm.png")

The PHP code in VirtueMart is similar to:
Code:

$secret = "supersecretvalue"; $demo = "00"; $demo = strtoupper($demo); // make $demo UPPERCASE $h = md5( $this-&gt;orderdetails['details']['BT']-&gt;cust_name . $secret ); // generate hash $h = strtoupper($h); // make hash UPPERCASE $h = chunk_split($h,4,"-"); // add hyphens after every 4th character $h = $h . $demo; // add demo to end of the license

A version of this is also inside the software package in order to validate the hash.

Would I be able to do something like this in HikaSerial?
I use HikaShop exclusively now and would like to revamp my own site to use HikaShop.

Thank you.

- [ ![Voila&#95;Capture&#95;2015-06-09&#95;04-02-31&#95;pm.png](/forum/attachment/24815) ](/forum/attachment/24815 "...4-02-31&#95;pm.png") [ ](/forum/attachment/24815?download=1 "...4-02-31&#95;pm.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzQwNS1wb3NzaWJsZS10by1jcmVhdGUtYS1jdXN0b20tc2VyaWFsLW51bWJlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 5 months ago [\#204211](#204211) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Possible to Create a Custom Serial Number?](/forum/15-general-talk-about-hikaserial/877405-possible-to-create-a-custom-serial-number#204211 "I have a software package that I wrote that is downloadable from a website. I was using a VirtueMart hack to create an md5 Hash that was turned into a Serial # which could then be entered into the program to licence it.  The output looks something like this: Joe Smith 4E01-D731-2A87-FA89-FA12-D188-0429-B890-00 I have attached a screenshot of the licensing screen that is in the software package so you get the idea.  The PHP code in VirtueMart is similar to:  A version of this is also inside the software package in order to validate the hash.  Would I be able to do something like this in HikaSerial? I use HikaShop exclusively now and would like to revamp my own site to use HikaShop.  Thank you.")*

Hi,

Yes, it is for sure possible because it's one of the main goals of HikaSerial.
By creating a custom plugin for HikaSerial, you will be able to have your own generator that you will be able to use for your packs/products.

As you can see in the developer documentation, when a serial is generated, you have access to the entire HikaShop order so you can use the customer name in your algorithm.
[ www.hikashop.com/support/documentation/1...tml#generator\_plugin](http://www.hikashop.com/support/documentation/125-hikaserial-developer.html#generator_plugin)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzQwNS1wb3NzaWJsZS10by1jcmVhdGUtYS1jdXN0b20tc2VyaWFsLW51bWJlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.043 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
