Lockis
Easily encrypt your sensitive data with double aes256+hmac and with ttl.
# import the module
import lockis
# generate secret key (128 bytes)
key = lockis.gkey()
# initilize secret key
key = lockis.lockis(key)
# encrypt message
key.encrypt()
# decrypt message with ttl 10 seconds
key.decrypt(data, ttl=10)
You can also specify ttl, this will help protect against replay attacks.
>>> import lockis
>>> key = lockis.gkey()
>>> key = lockis.lockis(key)
>>> key.encrypt(b"hello everyone, its a test message!")
b'EAAAAABnhh92pdLhypQcEsvwh4YUMuwzNg8RiQE2pJLnkT9Ru8tUSXvN6XGi3eeO1q-OiLD_E66pCpymr8Jw_BtrXB6Q1i9SeHe3l-NiCvGRZD2WOEmzjjH7MnyO7Haiw-hHdvs8SFZJgpssxR_tLAEvRaDcV9scC7Gfd2kwmdsok8wrRNvlpkE='
>>> key.decrypt(b'EAAAAABnhh92pdLhypQcEsvwh4YUMuwzNg8RiQE2pJLnkT9Ru8tUSXvN6XGi3eeO1q-OiLD_E66pCpymr8Jw_BtrXB6Q1i9SeHe3l-NiCvGRZD2WOEmzjjH7MnyO7Haiw-hHdvs8SFZJgpssxR_tLAEvRaDcV9scC7Gfd2kwmdsok8wrRNvlpkE=', ttl=60)
hello everyone, its a test message!
how to show the current version of installed lockis
lockis.version()
Metadata
Release files for lockis 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lockis-1.0.2.tar.gz | 3.2 kB | Without provenance | Details for lockis-1.0.2.tar.gz |
Release files / lockis-1.0.2.tar.gz
| Download URL | lockis-1.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50ec53230bc630cfb8ad2c7dbd1c4b4a8dd4c0816d9a79d3f927fd1ef193ef39
|
|
BLAKE2b-256 checksum How to use checksums |
7b001a49b43d4ae272f25ba719d40bfcbf0e5dba1a63bc2e7f6d514bcf01b24d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for lockis 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.