Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Create Netseal License

hey, just want to share this little code piece. You can create licenses for your netseal application in c# with it:

PHP Code

<?php 
using 
(WebClient wc = new WebClient())
{
NameValueCollection nv = new NameValueCollection();
nv.Add("key", "YOURAPIKEY");
nv.Add("track", "");
nv.Add("type", "1");  //free=0, bronze=1, silver=2, gold=3, platin=4, dia=5
nv.Add("points", "");
nv.Add("time", "0"); //unlimited = 0
var responseBytes = wc.UploadValues("http://seal.nimoru.com/Remote/createCode3.php", nv);
var 
serial = Encoding.ASCII.GetString(responseBytes ).Substring(1);
} 
Isn't there a licence panel for Net Seal? I can see uses for this for web applications though.
[Image: 1zL3pDG.jpg]
(Mar 4, 2015 03:53 PM)SIM-1676753 Wrote:  Isn't there a licence panel for Net Seal? I can see uses for this for web applications though.

"You can create licenses for your netseal application"
Just to nitpick, use HttpClient instead of WebClient, and Dictionary<string, string> instead of NVC since you won't have repeats, otherwise mind explaining what this does a little more? I thought this was built into the panel.
(Mar 4, 2015 06:14 PM)Corios Wrote:  Just to nitpick, use HttpClient instead of WebClient, and Dictionary<string, string> instead of NVC since you won't have repeats, otherwise mind explaining what this does a little more? I thought this was built into the panel.

It is, but you can integrate this into your applications. E.g. I need this to automatically transfer the licenses of my old customers to the new version.
(Mar 4, 2015 11:02 PM)coolerfarmer Wrote:  It is, but you can integrate this into your applications. E.g. I need this to automatically transfer the licenses of my old customers to the new version.

ah okay, I can see that being pretty useful then, thanks for the snippet!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Night06phereDec 28, 2021 07:07 PM 1 150 Dec 28, 2021 07:07 PM
Last Post: VmX5
[.NET] by passwordsMay 30, 2018 01:11 PM 14 934 May 30, 2018 01:11 PM
Last Post: System[X]
[.NET] by gillesMar 28, 2018 12:15 PM 5 648 Mar 28, 2018 12:15 PM
Last Post: gilles