Questions tagged [uniqueidentifier]

With reference to a given (possibly implicit) set of objects, a unique identifier is any identifier which is guaranteed to be unique among all identifiers used for those objects and for a specific purpose.

Overview

When dealing with a set of objects, a unique identifier is any identifier that is designed to be unique among all identifiers used for those objects within a given range, scope or purpose.

1591 questions
21
votes
3 answers

identifierForVendor changes on reinstall

identifierForVendor is not supposed to change on reinstall of app: The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of…
Jonny
  • 15,955
  • 18
  • 111
  • 232
21
votes
5 answers

How to determine MAC Address of the actual physical network card -- not virtual network interfaces created by VPN's (.NET C#)

Background I'm trying to get obtain a unique identifier out of a computer and want to be able to reliably return the same MAC address each time. Trust me I have my reasons for using MAC address and have read many posts about alternate unique id…
blak3r
  • 16,066
  • 16
  • 78
  • 98
20
votes
4 answers

How to detect the original MAC address after it has been spoofed?

We are using the following code for retrieving active MAC address of a windows pc. private static string macId() { return identifier("Win32_NetworkAdapterConfiguration", "MACAddress", "IPEnabled"); } private static string identifier(string…
Sajib Mahmood
  • 3,382
  • 3
  • 37
  • 50
20
votes
4 answers

What is the replacement for uniqueidentifier in Mysql

I have a query from SQL Server which I want to run in Mysql. but I cannot find any replacement for uniqueidentifier keyword from SQL Server script to MYSQL Script. Here is the query CREATE TABLE foo( myid uniqueidentifier NOT NULL, barid…
jimmy
  • 8,121
  • 11
  • 36
  • 40
20
votes
5 answers

Unique IDs with mongodb

If I were building a blog I could use the blog title as the unique identifier and parse it through the URL. However, what if I wanted to use numbers. You know how twitter has www.twitter.com/username/statuses/9834542? Has anyone figured out a nice…
sdotsen
19
votes
3 answers

SQL Server : why is the 15th char of a GUID always 4?

I'm just curious, I've always wondered why this is so. In an attempt to find out if I could create one without the character 4 at the 15th character, I ran this... DECLARE @GUID AS NVARCHAR(36) DECLARE @COUNT AS INTEGER SET @COUNT = 0 SET @GUID =…
Elarys
  • 639
  • 3
  • 10
  • 20
19
votes
1 answer

REST API best practice - where to place a unique request identifier

When designing a REST API, what is the best practice for adding a unique request identifier when performing an http request? I would normally add it in the headers as x-request-id, but today heard someone mention adding it in the url as a query…
hyprstack
  • 4,043
  • 6
  • 46
  • 89
19
votes
8 answers

Generating unique, hard-to-guess "coupon" codes

My Rails app needs to generate electronic coupons for users. Each coupon given should have a unique coupon code that can be redeemed on our system. For example a coupon for a free burrito. User A receives a coupon for a free burrito and then User B…
Deekor
  • 9,144
  • 16
  • 69
  • 121
19
votes
5 answers

I want unique identifier string which detect iPhone device (just like UDID)?

I want unique identifier string for iPhone devices instead of UDID and MAC. 1. Get UDID and MAC are deprecated by apple. 2. We can use UUID but it will get change after reinstalling app or delete app. I want any unique value of device which is…
Mahesh
  • 317
  • 1
  • 3
  • 17
18
votes
6 answers

Generate unique ID

I need to generate unique ID's for my application. When I used (UUID.randomUUID()).toString(), I am getting a code (thinking this will be unique), which is very lengthy. I am not sure how unique it will be, when we generate codes with the help of…
user915303
18
votes
3 answers

LoRaWAN DevEUI, AppEUI and AppKey

I'm trying to understand the three magic LoRaWAN IDs from the LoRaWAN 1.2 specification. My understanding is: DevEUI is like a MAC address AppKey is like a public key (roughly...) AppEUI is like a port number Now I'm having problem understanding…
Matthieu
  • 2,736
  • 4
  • 57
  • 87
18
votes
1 answer

Get hardware serial number of Android device

I need to get the hardware serial code of Android device where my app is installed. This hardware serial number is the one that you can see on Settings > About Device > Status > Serial number. I though I would get it using Settings.Secure.ANDROID_ID…
Storo
  • 988
  • 1
  • 7
  • 31
18
votes
5 answers

How do I identify a blank uniqueidentifier in SQL Server 2005?

I'm getting a uniqueidentifier into a Stored Procedure that looks like this 00000000-0000-0000-0000-000000000000. This seems like a simple thing, but how can identify that this is a blank uniqueidentifier? If I get a value like this…
codingguy3000
  • 2,695
  • 15
  • 46
  • 74
18
votes
3 answers

What is the unique identification for emails?

I'm trying to find the guaranteed unique identifier to distinguish emails from each other. Currently, I am writing an application which connects to Microsoft Exchange, however I want to be able to support other email services. I think that the…
myermian
  • 31,823
  • 24
  • 123
  • 215
17
votes
5 answers

How to generate a human friendly unique ID in Python?

How do I generate a unique ID value that can be easily passed on via phone or email, that can be easily remembered while still not being easily guessable. I am using database. But as I am giving away the ID to people I do not want it to be bound to…
iamgopal
  • 8,806
  • 6
  • 38
  • 52