Skip to main content

IAM and data encryption at rest

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Apache-2.0 Last Release status codecov

We also have a homepage and documentation for you to check out.

Krptn

This project is archived, and not developed further. It was a developed for my personal education/entertainment.

pip install krptn

What problem do we solve?

We all love Django and other web frameworks! However, their primary focus is creating websites - not implementing secure storage for user data. Django makes it easy to store data. While it hashes the password, it does not encrypt user data for you. In case of a data breach, malicious actors could access any data from the DB. Encryption is left to the developer...

Wouldn't it be nice if encryption would also be handled? Perhaps it could be handled in a way that keys are derived from credentials, such that, without the user entering credentials, not even the database administrator can read it?! This is exactly what we do!

We also handle user authentication, including MFA, and passwordless authentication.

Krptn also runs in the same server instance as your web app. So you don't have to host anything new. Just install the extension for Python.

To prove that such is possible, we have a Flask and Django example on GitHub.

What do we do exactly?

We are building a user authentication and access management system (IAM) with data encryption at rest derived from credentials. It is available as a python extension module. However we have certain limitations.

How we achieve this?

  • All data is encrypted (any data can be requested by the developer to be secured)
  • Only the appropriate users' credentials can unlock the cryptosystem (this protects you from server-side attacks)

This gives you security from encryption without ever needing to even notice it! It protects you from server side attacks.

Here is an example usage:

from krypton.auth.users import userModel

model = userModel.standardUser(None)
model.saveNewUser("Test_UserName", "Test_Password")
model.data.email = "test@example.com" # The email will be encrypted, and securely stored

Krptn Visualisation

Try it out

Quickly install the package with pip for Python>3.9:

pip install krptn

Have a look at our User Authentication documentation, and create some users.

Ready to integrate it into your WebApp? Have a look at some of our integration's available with Django and Flask!

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

krptn-0.8.7.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

krptn-0.8.7-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file krptn-0.8.7.tar.gz.

File metadata

  • Download URL: krptn-0.8.7.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for krptn-0.8.7.tar.gz
Algorithm Hash digest
SHA256 a7af47fc05648b5764e1a641fa2697d5e5f6a6a7491a0f7d54004eacc49b0b1f
MD5 aedeae7813667bbca4e3889418ce0067
BLAKE2b-256 234c75694b9cfc689209061b47932d097ce9804c51a9f9336133d862606d6b79

See more details on using hashes here.

File details

Details for the file krptn-0.8.7-py3-none-any.whl.

File metadata

  • Download URL: krptn-0.8.7-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for krptn-0.8.7-py3-none-any.whl
Algorithm Hash digest
SHA256 34b2b462c21f83eb57d328e4cf9ac881ea1d0aeafd71740e2d344af862673f6c
MD5 71ea1ade33b9bf1bf332d7b8370d19ed
BLAKE2b-256 c115a6849601417dbf49faa683b5c5f822c16b4c8fc3005d360592b3fb950e6e

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