my CPU mac address is BFEBFBFF000006F 6
and my software name is : shefa
is there any function or encryption way in C# to generate a 24 digits (alpha
numeric) from both CPu MAC address and software name? 5 6918
Jassim Rahma wrote:
my CPU mac address is BFEBFBFF000006F 6
and my software name is : shefa
is there any function or encryption way in C# to generate a 24 digits
(alpha numeric) from both CPu MAC address and software name?
Plenty.
You could just concatenate the two and pad with something.
If you have more specific requirements then tell us.
Arne
There are lots of ways to do this, it depends on what kind of encryption you
need and how strong it should be. For starters (not that I'd necessarily
recommend this) you could pad the combined string with zeroes to reach 24
characters, and then do simple XOR replacement on each character to get a new
string. The advantage of this (although it is very easy to break "the code")
is that XOR is 2-way - if you pass the encrypted string into the same method,
you get back the original, and no key is required.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"Jassim Rahma" wrote:
my CPU mac address is BFEBFBFF000006F 6
and my software name is : shefa
is there any function or encryption way in C# to generate a 24 digits (alpha
numeric) from both CPu MAC address and software name?
On Sun, 19 Aug 2007 01:25:16 +0300, "Jassim Rahma"
<jr****@hotmail .comwrote:
>my CPU mac address is BFEBFBFF000006F 6
and my software name is : shefa
is there any function or encryption way in C# to generate a 24 digits (alpha numeric) from both CPu MAC address and software name?
How secure does this need to be?
Does it need to be reversible?
Your options include some or all of: Base64 encoding, a cryptographic
hash function, a cryptographic cypher.
Given that most cryptographic functions work on 128 bit (16 byte)
blocks then the Base64 encoding of a block will give you 24
characters,thou gh it might contain "/" and will certainly contain "="
at the end.
rossum
i want to generate somthing like:
xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
from the MAC address without letting the user know how it was generated.
"Arne Vajhøj" <ar**@vajhoej.d kwrote in message
news:46******** *************** @news.sunsite.d k...
Jassim Rahma wrote:
>my CPU mac address is BFEBFBFF000006F 6
and my software name is : shefa
is there any function or encryption way in C# to generate a 24 digits (alpha numeric) from both CPu MAC address and software name?
Plenty.
You could just concatenate the two and pad with something.
If you have more specific requirements then tell us.
Arne
Jassim Rahma wrote:
i want to generate somthing like:
xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
from the MAC address without letting the user know how it was generated.
There are lots of ways of doing this.
You can just take the MAC in hex and take 1 hex digit of MAX + random
byte + second hex digit of MAC + random digit etc..
Or you can come up with more complex schemes.
If it is a licensing scheme, then you should be aware that
..NET assemblies are easy to decompile and check how the serial
is obtained and checked.
Arne This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tony Clarke |
last post by:
Hi,
I'm trying to write a system thats used for about 50 clients that uses html
forms and php to log details. The problem is that when a client loads the
form page it's given a value which is the last record in a table +1 (i.e. so
its the next record). The problem with that is that a client could sit on
that page for 20 mins (or whatever length of time) and a different client
could use that record number and there what be an error...
|
by: Nitin |
last post by:
Hello,
We are trying to figure out how to get a unique identifier for a machine.
Our application is a C# windows application that talks to our server via a
webservice. Every time our webservice is called, we want to verify that the
user has a valid license. For that we want to identify the user via his/her
machine. I tried using the following
searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive");
|
by: UJ |
last post by:
Is there any number I can get that is truly unique for a computer that can't
be changed? I want to have a system whereby I have a computer that accesses
a web service based on some unique value that can't be changed. Or at least
if it is changed, it's not changed frequently. (IP address won't work
because that can change frequently).
Here's my thought - the program boots up, finds some unique piece of
information, sends that off to the...
|
by: Lauren Wilson |
last post by:
Does anyone know how the following info is extracted from the user's
computer by a Front Page form?
HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.5) Gecko/20041107 Firefox/1.0
I only ask because I believe I could use the same info as part of a
scheme to generate a unique (or at least less common) serialized id
code for the user's computer as part of a software locking and
activation system. If I had a DLL...
|
by: ML |
last post by:
What is the best/easiest means to return the serial/volume number of the
drive containing the OS using VB.NET?
I'm looking to get this information as a unique ID for
activation/registration of a custom application so as to tie the software to
a single PC. I need something that will work with 98, ME, 2000, XP, and
newer.
Or if anyone has other suggestiosn on best means to generate an ID to tie to
a single PC for licensing I'd...
| |
by: Dennis Gearon |
last post by:
Given:
CREATE TABLE Usrs(
usr_id SERIAL NOT NULL PRIMARY KEY,
usr VARCHAR(64) NOT NULL UNIQUE
);
CREATE TABLE Emails(
email_id SERIAL NOT NULL PRIMARY KEY,
email VARCHAR(128) NOT NULL UNIQUE
);
|
by: Benjamin Smith |
last post by:
I have two tables like following:
create table attendancereport (
id serial unique not null,
staff_id integer not null references staff(id),
schoolyear varchar not null references schoolyear(year),
students_id integer not null references students(id)
);
// schoolyear.year in format "2003 - 2004".
|
by: JJ |
last post by:
Now I know this question has been asked many times, but I cannot seem to
find a good site which summarises the methods possible in vb .net.
I am after a way of producing a unique serial number for my app. The program
would produce a unique identifier for the computer, then I would psovide the
user with a serial number unique to their machine.
In other words I would like to check for things like:
i) Hard disk (not volume) serial number...
|
by: Paul Bromley |
last post by:
Ok - I have given up on trying to find the active IP address for a given PC.
For licensing purposes I need to retrive a unique identifier from the PC
that the program is installed on. The Hard disk serial number would do fine,
but on Googling it seems that some of the sample code will now laways work
on W2K, and not without administrator rights.
Hence my question - how can I consistently get a UNIQUE PC identifier using
vb.net 2003 - not...
|
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,...
|
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,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |