Enter Device Identifier

Enter a device serial number or MAC address to generate a unique identifier
Select the hash algorithm to use
Select the output format
Optionally truncate the hash to a specific length
Format the result as a valid MQTT topic (e.g., device/HASH/status)
Use {hash} as a placeholder for the hash value

Results

Hash Result

Generate a hash to see results

MQTT Topic

Reference Information

Hash Algorithms

  • SHA-256: Secure, 256-bit hash (64 characters) - recommended for most uses
  • SHA-1: 160-bit hash (40 characters) - faster but less secure
  • MD5: 128-bit hash (32 characters) - fastest but least secure

MQTT Topics

MQTT topics should use alphanumeric characters, avoid spaces, and use forward slashes (/) as delimiters. A common pattern is device/DEVICE_ID/sensor/temperature.

Usage Tips

  • Use consistent capitalization in your device identifiers
  • Consider truncating long hashes to make them more manageable
  • SHA-256 provides the best security for sensitive applications