<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiInfrastructure",
  "identifier" : "/documentation/WiFiInfrastructure/WIMACAddress/Hash/init(address:method:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Wi-Fi Infrastructure"
    ],
    "preciseIdentifier" : "s:18WiFiInfrastructure12WIMACAddressV4HashV7address6methodAESgAC_AE6MethodOtcfc"
  },
  "title" : "init(address:method:)"
}
-->

# init(address:method:)

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

```
init?(address: WIMACAddress, method: WIMACAddress.Hash.Method = .sha256)
```

## Parameters

`address`

The MAC Address to hash.

`method`

The method to use to generate the hash. Defaults to `.sha256`.

---

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)