User Tools

Site Tools


linux:security:keyring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:security:keyring [2020/05/25 15:30] chucklinux:security:keyring [2021/11/09 14:57] (current) chuck
Line 1: Line 1:
 ======Linux Keyring====== ======Linux Keyring======
-Here's a few tips on using the Linux Keyring.+
  
 ---- ----
 +====Tools====
   * [[linux:security:keyring:secret-tool]]   * [[linux:security:keyring:secret-tool]]
 +  * [[linux:security:keyring:keyring]]
  
- +====Keyring Applications==== 
- +  * [[linux:security:keyring:gnome-keyring]] 
-=====keyring===== +  [[linux:security:keyring:keepassxc-keyring]]
-Python-Keyring command-line utilityhttps://pypi.org/project/keyring+
- +
-===Install=== +
-  * ''%%sudo apt install python3-keyring%%'' +
- +
-===Description=== +
-<WRAP announcement smaller green> +
-==From man keyring== +
-**keyring** provides a way to store, lookup and delete passwords in various backends supported by Python-Keyring. +
-</WRAP>+
  
 ---- ----
-====Usage==== 
-===Python=== 
-You can set/get entries from a Python script or from the Python terminal 
  
-==Add an entry== 
-<code> 
-keyring.set_password("system", "username", "password") 
- 
-# Same as above but ask for the password 
-keyring.set_password('twitter', 'xkcd', getpass.getpass()) 
-</code> 
- 
-==Get a password== 
-<code>keyring.get_password("system", "username")</code> 
- 
- 
-===CLI=== 
-You can set/get entries directly from the command line or from bash scripts, etc. 
-<code> 
-keyring --help 
-keyring set SERVICE USERNAME 
-keyring get SERVICE USERNAME 
-keyring del SERVICE USERNAME 
-</code> 
- 
----- 
- 
-====Details==== 
-The commands above will set the following attributes on an entry: 
-  * For example, running:  
-    * ''%%keyring set twitter chuckn246%%'' 
-  * Will create an entry with the Title: 
-    * Password for 'chuckn246' on 'twitter' 
-  * Will set these attributes on the entry: 
-    * **application**: Python keyring library 
-    * **service**: twitter 
-    * **username**: chuckn246 
- 
-==Small Gotcha== 
-  * Note that the attribute username is different than the entry UserName (Note capitalization).<code> 
-secret-tool search service twitter 
-[/org/freedesktop/secrets/collection/TestDB/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 
-label = Password for 'chuckn246' on 'twitter' 
-secret = twitterpassword 
-created = 2020-05-08 22:17:06 
-modified = 2020-05-08 22:17:06 
-schema = (null) 
-attribute.Path = /Password for 'chuckn246' on 'twitter' 
-attribute.Uuid = 3174d145b5e74435ab15cf45a5d805cb 
-attribute.UserName = chuck 
-attribute.service = twitter 
-attribute.URL =  
-attribute.Notes =  
-attribute.application = Python keyring library 
-attribute.username = chuckn246 
-attribute.Title = Password for 'chuckn246' on 'twitter' 
-</code> 
- 
----- 
  
linux/security/keyring.1590420604.txt.gz · Last modified: by chuck