Skip to main content

A package for encrypting simple texts

Project description

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

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

nicrypt-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file nicrypt-0.0.3.tar.gz.

File metadata

  • Download URL: nicrypt-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for nicrypt-0.0.3.tar.gz
Algorithm Hash digest
SHA256 79141d7bacd4d8223fd3753e0ee465d078ba7b77425a03babe98bfed130f56fe
MD5 91a10c7d6c93f7478ff674dd33ed88cf
BLAKE2b-256 6ecc4725ba39be9dbec8dd907be43db7c0ffd4dd85f2e22698188a3778997719

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