Skip to content
Martin edited this page Mar 7, 2017 · 4 revisions

Welcome to the python-keyctl wiki!

Usage

Get all keys:

from keyctl import Key
keylist = Key.list()
for mykey in keylist:
    print mykey.id

Read existing key:

from keyctl import Key
mykey = Key(123)
print mykey.name
print mykey.data
print mykey.data_hex

Find key by name:

from keyctl import Key
mykey = Key.search('test key')
print mykey.id

Add key:

from keyctl import Key
mykey = Key.add('test key', 'test content')
print mykey.id

Delete key:

from keyctl import Key
mykey = Key(123)
mykey.delete()

Update key:

from keyctl import Key
mykey = Key(123)
mykey.update('new content')

GUI

To open the GUI, run the installed command.

$ keyctlgui

GUI Screenshot

Clone this wiki locally