Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

MacRuby Keychain Wrapper is a wrapper for accessing keychain from MacRuby.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 README.md
Octocat-spinner-32 keychain.rb
README.md

MacRuby Keychain Wrapper

MacRuby Keychain Wrapper is a wrapper for accessing keychain from MacRuby. Extracted from Gmail Notifr.

todo: more intro

Requirements:

Examples

require 'keychain'

Create a new generic item

item = MRKeychain::GenericItem.add_item_for_service('GmailNotifr', username:'ashchan', password:'password')

Grab a generic item

existing_item = MRKeychain::GenericItem.item_for_service('GmailNotifr', username:'ashchan')

Update an item

existing_item.password = 'new_password'

Remove from keychain

existing_item.remove

Copyright (c) 2010 James Chen (@ashchan), released under the same terms as Ruby

Something went wrong with that request. Please try again.