<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/SHA256Digest",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Apple CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit12SHA256DigestV"
  },
  "title" : "SHA256Digest"
}
-->

# SHA256Digest

The output of a Secure Hashing Algorithm 2 (SHA-2) hash with a 256-bit digest.

```
struct SHA256Digest
```

## Topics

### Inspecting the digest length

[`byteCount`](/documentation/CryptoKit/SHA256Digest/byteCount)

The number of bytes in the digest.

### Accessing underlying storage

### Describing a digest

[`description`](/documentation/CryptoKit/SHA256Digest/description)

A human-readable description of the digest.

### Hashing a digest

[`hash(into:)`](/documentation/CryptoKit/SHA256Digest/hash(into:))

Hashes the essential components of the digest by feeding them into the
given hash function.

## Relationships

### Conforms To

[`Digest`](/documentation/CryptoKit/Digest)

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

[`ContiguousBytes`](/documentation/Foundation/ContiguousBytes)

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

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

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

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

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

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

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

---

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)