Store application credentials in keyring with RSA.
Project description
Credentials Safe
Store application credentials in keyring with RSA.
Hierarchy
credsafe
'---- Agent()
|---- set()
'---- get()
Example
python
from credsafe import *
# initialize an agent
kp = { # check easyrsa for more info
"private_key": ...,
"public_key": ...
}
import os
key = os.urandom(64)
credsafe_agent = Agent(app_name="my app", key_pair=kp, hmac_key=key)
# set something for a user
credsafe_agent.set(id="username", pw="password", k="phone", v=123456789)
credsafe_agent.set(id="username", pw="password", k="config", v={"something": "secret"})
# get something for a user
print(credsafe_agent.get(id="username", pw="password", k="phone"))
# 123456789
print(credsafe_agent.get(id="username", pw="password", k="config"))
# {"something": "secret"}
shell
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
credsafe-0.0.3.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
credsafe-0.0.3-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file credsafe-0.0.3.tar.gz.
File metadata
- Download URL: credsafe-0.0.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdf3050fa76eaf7c43d74d63541c3338a654c553267708b45ce43ef81bafae0e
|
|
| MD5 |
63c21e74c0fdba7fdb8a5f549140f982
|
|
| BLAKE2b-256 |
8023ba73aa698de6ee03f3d54952bfcaa78a01258becf2b37a82f30927e52bca
|
File details
Details for the file credsafe-0.0.3-py3-none-any.whl.
File metadata
- Download URL: credsafe-0.0.3-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
183b7127aac1291e1c617f5cc728282b699297a0616c76ac579e6001c67cdab5
|
|
| MD5 |
c00d291aa7e1d905abb0ff1d4d8ffebd
|
|
| BLAKE2b-256 |
b30bead83e39f64181aaa056fd1b96afa047f2c61e06185ceb86ae995c66492d
|