decrypt_gk_pw: Get a password from Gnome Keyring using secret-tool

Description Usage Arguments Details Value Examples

View source: R/decrypt_gk_pw.R

Description

Get a password from Gnome Keyring using secret-tool

Usage

1
decrypt_gk_pw(key_value_pairs)

Arguments

key_value_pairs

A string of key value pairs as expected by secret-tool

Details

Requires the Gnome Keyring and secret-tool to be installed.

Value

An decrypted password as an invisible string. Invisible means that the password won't be displayed in the console, but can be assigned to a variable or used inline.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# First encrypt a password using secret-tool as follows:
# secret-tool store --label=mylabel db mydb user user1
# now return the password above to the R environment
x <- decrypt_gk_pw("db mydb user user1")

# function is best used in a connection string command:
ch <- odbcConnect("some dsn", uid = "user1", pwd = decrypt_gk_pw("db mydb user user1"))

## End(Not run)

jgilfillan/keyringr documentation built on May 17, 2017, 8:18 p.m.