/usr/lib/python2.7/dist-packages/keyutils-0.5.egg-info/PKG-INFO is in python-keyutils 0.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | Metadata-Version: 1.1
Name: keyutils
Version: 0.5
Summary: keyutils bindings for Python
Home-page: https://github.com/sassoftware/python-keyutils
Author: Mihai Ibanescu
Author-email: mihai.ibanescu@sas.com
License: Apache 2.0
Description: python-keyutils
===============
python-keyutils is a set of python bindings for keyutils (available from
http://people.redhat.com/~dhowells/keyutils), a key management suite that
leverages the infrastructure provided by the Linux kernel for safely storing
and retrieving sensitive infromation in your programs.
Usage
~~~~~
The C extension module follows closely the C API (see ``add_key(2)``,
``request_key(2)``, ``keyctl_read_alloc(2)``).
Exceptions also follow the C API. The only notable difference is for
``request_key``: when the key is not present, ``None`` is returned, instead of
raising an exception (which is usually a more expensive operation).
Note that the function parameters are passed as bytes not strings! On python 3
this usually requires an explicit ``param.encode()`` call.
For example:
.. code-block:: python
import keyutils
# NOTE: only pass `bytes` to the keyutils API:
name = b'foo'
value = b'bar'
ring = keyutils.KEY_SPEC_PROCESS_KEYRING
key_id = keyutils.add_key(name, value, ring)
assert keyutils.request_key(name, ring) == key_id
assert keyutils.read_key(key_id) == value
# set timeout to 5 seconds, wait and then... it's gone:
keyutils.set_timeout(key_id, 5)
from time import sleep
sleep(6)
assert keyutils.request_key(name, ring) == None
Further examples can be found in the ``test`` subfolder.
Platform: Linux
Classifier: Topic :: Security
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
|