Created
March 2, 2015 01:07
-
-
Save torinkwok/cd816801ef83685e1489 to your computer and use it in GitHub Desktop.
Create an empty keychain with given passphrase with WaxSealCore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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