473,668 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create a Serialnumber for App programmaticall y?

Hi, we are developing an winforms application for task management. We want
generate a serial number wich includes Username, Company Name and another
Information as String. How can i create from these values a serial number?

thanks
yavuz
Nov 21 '05 #1
4 3027
There are tons of ways to do that. Way too many to cover here in entirety.
here is what I had done before:

If your DB structure has a unique id for each entity (username, company
name, etc..) then you can simply concatenate those values together to crate
the serial number.

You can try taking all your strings, concatenating them together and
creating a hash value from them.

Allot of it depends on weather or not you need to be able to decompose the
number back into it's component values or not really. If you use a hash type
method then it is pretty much one way.

"Yavuz Bogazci" <Ya**********@d iscussions.micr osoft.com> wrote in message
news:AA******** *************** ***********@mic rosoft.com...
Hi, we are developing an winforms application for task management. We want
generate a serial number wich includes Username, Company Name and another
Information as String. How can i create from these values a serial number?

thanks
yavuz

Nov 21 '05 #2
Have you looked at encryption and hash strings?

It's not a number but it's a unique and reasonably uncrackable string if you
use more than about 15 characters in it.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Yavuz Bogazci" <Ya**********@d iscussions.micr osoft.com> wrote in message
news:AA******** *************** ***********@mic rosoft.com...
Hi, we are developing an winforms application for task management. We want
generate a serial number wich includes Username, Company Name and another
Information as String. How can i create from these values a serial number?

thanks
yavuz

Nov 21 '05 #3
Hi,

no i havent! I need the serial in two ways. That means, i need to create the
serial from the given informations and in my app i had to "decrypt" it to
show the information and to use them.

thanks
yavuz
"Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > schrieb im Newsbeitrag
news:#O******** *****@TK2MSFTNG P10.phx.gbl...
Have you looked at encryption and hash strings?

It's not a number but it's a unique and reasonably uncrackable string if you use more than about 15 characters in it.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Yavuz Bogazci" <Ya**********@d iscussions.micr osoft.com> wrote in message
news:AA******** *************** ***********@mic rosoft.com...
Hi, we are developing an winforms application for task management. We want generate a serial number wich includes Username, Company Name and another Information as String. How can i create from these values a serial number?
thanks
yavuz


Nov 21 '05 #4
So, you will need to use something like the Hard Drive Serial number to
create a number that a user will have to e-mail you.

There are a few available as freeware or shareware, but some cost a lot of
money.

The best method out is to look into the Windows Activation. It works on
hardware.Yeah, its only in Base 24 & every 6 bit is a checksum, but if
Microsoft can implement it, you can too. This info is available on the MSDN
online documentation

-------------------------

Whatever method you use will be easy to reverse engineer. All you need is a
debugger to set the breakpoints, enter a wrong serial & see where it jumps.
Use an ASM program to change to 90 (NOP (No Operation)) therefore the jump
if incorrect serial is never made...

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
422
by: Silvia | last post by:
My question is that is posible create a IIS Virtual Directory programmatically with visual Basic.NET?? Is posible create a Application Pool programmatically too? Thanks
4
13625
by: Thomas Jespersen | last post by:
Hello I want to create a MSI file programmatically. Do you know of any third party .NET component which can help me with that? I'm going to use it like a self extracting zip. So it is not for a VS.NET setup project. Zip files will not do because these shall be distributed via System Management Server (SMS).
5
5602
by: Jacob | last post by:
Happy New Year! I'm writing a program that will need to store large amounts of data from several DataSets that I create at runtime (for information like email, calendar, etc...). The trick is that these files will need to be created programmatically. I think saving the DataSets into Access .mdb files is a logical choice, but I'm unable to find any information for creating NEW databases programmatically and I can only find information...
3
3706
by: R Reyes | last post by:
Just wondering if anyone knows the pros/cons between creating a database programmatically vs using the application's tool windows/features that come with SQLServer, Access, Oracle, etc... Is it the same? Does it really matter? I have created databases with .NET programmatically and it works fine, but why would anyone want to do all this typing when they can easily point and click inside the program? It took a few hours of typing for...
14
6110
by: mistral | last post by:
Need php script to create mySQL database programmatically; since hosting configuration may not allow create database from script, script also need eliminate/rewrite all restrictions in appropriate places in that hosting.
3
1313
by: zapperen | last post by:
I have registration form, that you write serial number and so on. But i will prevent the user from registrate same thing twice. So if the serialnumber already in the table, then a popup message will tell them so? How is this possible? Use a invisible button that activate when they pusb enter. Dlookup? Help me :)
11
2939
by: =?Utf-8?B?UGV0ZXIgSw==?= | last post by:
I am working with Visual Studio or alternately with Expression Web. I need to create about 50 aspx pages with about 1200 thumbnali images, typically arranged in three to four groups per page, having hyperlinks to the corresponding full size images. Can anybody point me to locations in MSDN or elsewhere giving the references to attach, the commands & objects for creating or opening the pages and possibly available classes? I have done...
30
2611
by: vanlanjl | last post by:
Question: How do I create a Report based off the values/selections of mutliple combo boxes in a form? I have tried this several times with several failures and have used multiple codes to try this and each has been unsuccesful. I will try to explain my database and its contents Tabels and Fields ((PK) indicates the primary Key): tblAssets: ID(PK), AssetNumber, SerialNumber, ModelName, ComputerName, DeploymentDate, Active, UserName,...
0
8381
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8586
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7401
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4205
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2792
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2026
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.