One Logo Pool Ball
CryptoKit · IOS API REFERENCE

Insecure.MD5Digest

struct · iOS 13.0+ · SDK 27.1

struct MD5Digest

The output of a MD5 hash.

Members (3)

get · iOS 13.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A human-readable description of the digest.

method · iOS 13.0+

withUnsafeBytes

TypeScript
withUnsafeBytes(body: ((arg0: ArrayBuffer) => unknown)): unknown
Swift declaration
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R

Calls the given closure with the contents of underlying storage. - note: Calling `withUnsafeBytes` multiple times does not guarantee that the same buffer pointer will be passed in every time. - warning: The buffer argument to the body should not be stored or used outside of the lifetime of the call to the closure. Clients should prefer the `withBytes` function to this one, because `withBytes` uses the non-escapable type `RawSpan` to ensure that the buffer argument is not stored outside of the closure.

get · iOS 13.0+

byteCount

TypeScript
static get byteCount(): number
Swift declaration
static var byteCount: Int { get }

The number of bytes in the digest.

Skipped declarations

No declarations were skipped in this snapshot.

All CryptoKit types →