Skip to content

Instantly share code, notes, and snippets.

@torinkwok
Created March 2, 2015 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torinkwok/050ed4e18a4a5894ad80 to your computer and use it in GitHub Desktop.
Save torinkwok/050ed4e18a4a5894ad80 to your computer and use it in GitHub Desktop.
Find a Internet passphrase with WaxSealCore
NSError* error = nil;
WSCPassphraseItem* IMDbLoginPassphrase = ( WSCPassphraseItem* )[ [ WSCKeychain login ]
findFirstKeychainItemSatisfyingSearchCriteria: @{ WSCKeychainItemAttributeLabel : @"secure.imdb.com"
, WSCKeychainItemAttributeProtocol : WSCInternetProtocolCocoaValue( WSCInternetProtocolTypeHTTPS )
, WSCKeychainItemAttributeComment : @"👺👹👺👹"
}
itemClass: WSCKeychainItemClassInternetPassphraseItem
error: &error ];
// WaxSealCore supports Unicode-based search, so you can use Emoji or Chinese in your search criteria.
// One step. So easy, is not it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment