<!--
{
  "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/Insecure/SHA1Digest",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Apple CryptoKit",
      "CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit8InsecureO10SHA1DigestV"
  },
  "title" : "Insecure.SHA1Digest"
}
-->

# Insecure.SHA1Digest

The output of a SHA1 hash.

```
struct SHA1Digest
```

## Topics

### Inspecting the digest length

[`static var byteCount: Int`](/documentation/CryptoKit/Insecure/SHA1Digest/byteCount)

The number of bytes in the digest.

### Accessing underlying storage

### Describing a digest

[`var description: String`](/documentation/CryptoKit/Insecure/SHA1Digest/description)

A human-readable description of the digest.

### Hasing a digest

[`func hash(into: inout Hasher)`](/documentation/CryptoKit/Insecure/SHA1Digest/hash(into:))

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

---

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)