<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiInfrastructure",
  "identifier" : "/documentation/WiFiInfrastructure/WIMACAddress/Hash",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Infrastructure"
    ],
    "preciseIdentifier" : "s:18WiFiInfrastructure12WIMACAddressV4HashV"
  },
  "title" : "WIMACAddress.Hash"
}
-->

# WIMACAddress.Hash

The hash of a MAC Address, which you may use to identify a device the accessory discovers over the air.

```
struct Hash
```

## Topics

### Initializers

[`init?(address: WIMACAddress, method: WIMACAddress.Hash.Method)`](/documentation/WiFiInfrastructure/WIMACAddress/Hash/init(address:method:))

Creates a new `Hash` from the given MAC Address, using a randomly-generated salt.

### Instance Properties

[`var description: String`](/documentation/WiFiInfrastructure/WIMACAddress/Hash/description)

A string description of the MAC Address Hash, for debugging purposes.

[`let hash: Data`](/documentation/WiFiInfrastructure/WIMACAddress/Hash/hash)

The hashed value of a MAC Address

[`let method: WIMACAddress.Hash.Method`](/documentation/WiFiInfrastructure/WIMACAddress/Hash/method-swift.property)

The method used to generate the hash.

[`let salt: Data`](/documentation/WiFiInfrastructure/WIMACAddress/Hash/salt)

The salt used to generate the hash.

### Instance Methods

[`func matches(address: WIMACAddress) -> Bool`](/documentation/WiFiInfrastructure/WIMACAddress/Hash/matches(address:))

`true` if the provided MAC address matches this hash, `false` otherwise.

### Enumerations

[`enum Method`](/documentation/WiFiInfrastructure/WIMACAddress/Hash/Method-swift.enum)

The method used to hash the MAC Address

## Relationships

### Conforms To

[`Decodable`](/documentation/Swift/Decodable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Encodable`](/documentation/Swift/Encodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)