@keychain = MacKeychain.new('AppName') @keychain.save('account name', 'password') .... @keychain.delete('account name')
gem install mac-keychain
It only works on Mac, and need RubyCocoa.
Author: Li Xiao <iam@li-xiao.com>
Requires: Ruby 1.8.6 or later
License: Copyright 2010 by Li Xiao.
Released under an MIT-LICENSE. See the MIT-LICENSE.txt file included in the distribution.
This software is provided “as is” and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.