Skip to content

Instantly share code, notes, and snippets.

@kgreenek
Created December 30, 2014 20:38
Show Gist options
  • Save kgreenek/5c9a3cd36456f494daed to your computer and use it in GitHub Desktop.
Save kgreenek/5c9a3cd36456f494daed to your computer and use it in GitHub Desktop.
public class SecureData: NSMutableData {
public init(length: Int) {
precondition(length > 0)
self = CFDataCreateMutable(SecureMemoryAllocator.allocator, length)
self.length = length
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment