Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can GNOME keyrings be accessed from Ruby?

Tags:

ruby

gnome

I need to access GNOME keyrings from the Ruby programming language. However, I can't find any ruby libraries of gems. Specifically, I'm trying to get the Oauth keys for desktopcouch.

How can this be acheived?

like image 380
david4dev Avatar asked Oct 16 '10 13:10

david4dev


1 Answers

Try keyring https://rubygems.org/gems/keyring/versions/0.3.1

It works as simple as

require 'keyring'
keyring = Keyring.new
my_password = keyring.get_password('service', 'username')
like image 174
andiba Avatar answered Sep 19 '22 08:09

andiba