Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

credsafe-0.0.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

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

Hashes for credsafe-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bdf3050fa76eaf7c43d74d63541c3338a654c553267708b45ce43ef81bafae0e
MD5 63c21e74c0fdba7fdb8a5f549140f982
BLAKE2b-256 8023ba73aa698de6ee03f3d54952bfcaa78a01258becf2b37a82f30927e52bca

See more details on using hashes here.

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

Hashes for credsafe-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 183b7127aac1291e1c617f5cc728282b699297a0616c76ac579e6001c67cdab5
MD5 c00d291aa7e1d905abb0ff1d4d8ffebd
BLAKE2b-256 b30bead83e39f64181aaa056fd1b96afa047f2c61e06185ceb86ae995c66492d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page