Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Basic Key Generation w/ Swift
let keyData = NSMutableData(length: 64)!
let result = SecRandomCopyBytes(kSecRandomDefault, 64, keyData.mutableBytes.bindMemory(to: UInt8.self, capacity: 64))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment