---
title: "Windows Phone 8.1 Device Unique id"  
description: "Windows Phone 8.1 Device Unique id"  
author: "Anonymous User"  
published: 2015-04-24  
updated: 2015-04-24  
canonical: https://www.mindstick.com/forum/23131/windows-phone-8-1-device-unique-id  
category: "windows phone"  
tags: ["windows phone"]  
reading_time: 1 minute  

---

# Windows Phone 8.1 Device Unique id

How to get the [device](https://www.mindstick.com/blog/149/retriving-network-device-information-in-c-sharp) [unique id](https://www.mindstick.com/forum/33873/how-to-get-unique-id-of-alasset-for-identification-in-ios) in [Windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) [Phone](https://www.mindstick.com/articles/23411/the-most-effective-method-to-find-the-perfect-small-business-phone-system-for-your-business) 8.1?? The old way of using **DeviceExtendedProperties.GetValue("DeviceUniqueId")** not works for Windows [Universal app](https://www.mindstick.com/forum/23130/windows-phone-8-1-universal-app-terminates-on-navigating-back-from-second-page).

## Replies

### Reply by Anonymous User

This may help:\

```
private string GetDeviceID()        {            HardwareToken token = HardwareIdentification.GetPackageSpecificToken(null);            IBuffer hardwareId = token.Id;            HashAlgorithmProvider hasher = HashAlgorithmProvider.OpenAlgorithm("MD5");            IBuffer hashed = hasher.HashData(hardwareId);            string hashedString = CryptographicBuffer.EncodeToHexString(hashed);            return hashedString;        }
```


---

Original Source: https://www.mindstick.com/forum/23131/windows-phone-8-1-device-unique-id

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
