Encrypt your private data with double aes256, hmac and with ttl.
Reason this release was yanked:
critical bug in encryption
Project description
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()
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
lockis-1.0.1.tar.gz
(3.2 kB
view details)
File details
Details for the file lockis-1.0.1.tar.gz.
File metadata
- Download URL: lockis-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2235b8fbc3ae52954efce950bfef28a2b0e622ccc736abe408c2acd5a41036c3
|
|
| MD5 |
cf1d796efac70636351ed8a37e49087b
|
|
| BLAKE2b-256 |
7e284524557ce831075831c8423d54a8ebd9d2fb5e3bb6f502ed619701e3d005
|