Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save torinkwok/cd816801ef83685e1489 to your computer and use it in GitHub Desktop.

Select an option

Save torinkwok/cd816801ef83685e1489 to your computer and use it in GitHub Desktop.
Create an empty keychain with given passphrase with WaxSealCore
NSError* error = nil;
// Create an empty keychain with given passphrase
WSCKeychain* emptyKeychain = [ [ WSCKeychainManager defaultManager ]
createKeychainWithURL: [ [ [ NSBundle mainBundle ] bundleURL ] URLByAppendingPathComponent: @"EmptyKeychainForWiki.keychain" ]
passphrase: @"waxsealcore"
becomesDefault: NO
error: &error ];
// You have no need for managing the memory manually,
// emptyKeychain will be released automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment