Nicrypt basic encryption algorithm
This is a simple package used to encrypt and decrypt both brief and long texts. The texts can be some secrets, e.g.
api keys and secrets, cryptocurrency wallet keys, wallet recovery phrases etc. All you have to remember is it uses the same keys in decryption for for what was used for encryption and therefore you have to record and keep them in a safer place.
Usage
In scripts
In your python script simply import the module and use as follows
from nicrypt.encrypt import ficha
encrypted_text = ficha('text to encrypt', 'enc'). This will encrypt the suplied text.
You can reverse the process by decrypting the text by keying in the following
decrypted_ext = ficha(f'{encrypted_text}', 'dec') # notice the usage of f-strings and thus python3.7+ is needed.
NOTE: The above methods uses a specific set of encryption key and salt that you must provide. These are required to be saved as environment variables and stored as 'env_vars' dictionary like so:
env_vars = {
'key': os.environ.get('ENC_KEY'),
'salt': os.environ.get('ENC_SALT')
}
NB: ficha means 'hide' in Kiswahili
Metadata
Release files for nicrypt 0.0.3
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 | |
|---|---|---|---|---|
| nicrypt-0.0.3.tar.gz | 3.5 kB | Without provenance | Details |
Release files / nicrypt-0.0.3.tar.gz
| Download URL | nicrypt-0.0.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79141d7bacd4d8223fd3753e0ee465d078ba7b77425a03babe98bfed130f56fe
|
|
BLAKE2b-256 checksum How to use checksums |
6ecc4725ba39be9dbec8dd907be43db7c0ffd4dd85f2e22698188a3778997719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
|
Security for nicrypt 0.0.3
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.