Instance Propertyswift-crypto 3.15.1Crypto
description
A human-readable description of the digest.
- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
var description: String { get }A human-readable description of the digest.
var description: String { get }import CryptoA cryptography library for Swift.
struct SHA256DigestThe output of a Secure Hashing Algorithm 2 (SHA-2) hash with a 256-bit digest.
@frozen struct StringA Unicode string value that is a collection of characters.
static var byteCount: Int { get }func hash(into hasher: inout Hasher) Hashes the essential components of the digest by feeding them into the given hash function.
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R Invokes the given closure with a buffer pointer covering the raw bytes of the digest.