---
title: "init(copyingWithZeroing:)"
framework: cryptokit
role: symbol
role_heading: Initializer
path: "cryptokit/symmetrickey/init(copyingwithzeroing:)"
---

# init(copyingWithZeroing:)

Creates a key from the given data, zeroing out the bytes afterward.

## Declaration

```swift
init(copyingWithZeroing bytes: inout MutableRawSpan)
```
