Skip to main content

A Python module designed to be able to encrypt almost any kind of data as easily as possible for you.

Project description

Enkryptor

PyPI - Python Version PyPI - License PyPI - Downloads PyPI

A Python module designed to be able to encrypt almost any kind of data as easily as possible for you.

It uses the cryptography module to provide you SHA256 encryption on your files with little to no intervention from you.

This is a newly made module, if you find any bugs or find a way to make it better feel free to file an issue or a pull request!

HOW TO USE:


Import the class from the module

from enkryptor import Enkryptor

Create an Enkryptor object

enc = Enkryptor()

Doing this will create all of the files that Enkryptor needs to work in the same directory it's in. If they already exist, they will be reused. Enkryptor can be safely initialised without any parameters, but you can specify either the name of the file you want to work with or its path, like this:

enc = Enkryptor(file='filename.e')

enc = Enkryptor(file='X:/path/to/file.e')

Having the .e extension is not necessary, but it separates your encrypted file from the others. You can actually set the extension to whatever you want. If you don't specify the file, the file created will be called enc.e.

You might also want to store different salt files for different encrypted files. You can specify the salt file's name or directory with the salt parameter:

enc = Enkryptor(salt='saltfilename.salt')

enc = Enkryptor(salt='X:/path/to/salt/file.salt')

Again, the .salt extension isn't strictly necessary. If you don't specify the salt file, the file created will be called salt.salt.

Pass in the password

enc.password("yourpass")

Replace yourpass with a password, as a string. This function returns true or false depending if the password was correct or incorrect. (This feature is experimental)

Encrypt your data

enc.enkrypt(data)

Replace data with whichever data you might want to save encrypted into your file, preferably in a list, dictionary or tuple. The data will be encrypted and saved into the file enc.e in the same directory the module is called from or into the file in the path you specified when you initialised the object.

Decrypt your data

enc.dekrypt()

You dont have to pass anything into this function. All it does is open your encrypted file, decrypt its contents, and return them.

Bucket List

  • Add an Extras class with full access to the functions of Enkryptor and other sweet stuff like a password generator.
  • Add an append parameter to enkrypt() to simply add something to the data already encrypted instead of overwriting it
  • Convert the whole module into Cython to give it better performance
  • Upload to PyPi so anyone can use! DONE

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

Enkryptor-0.1.1.post1.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file Enkryptor-0.1.1.post1.tar.gz.

File metadata

  • Download URL: Enkryptor-0.1.1.post1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.9

File hashes

Hashes for Enkryptor-0.1.1.post1.tar.gz
Algorithm Hash digest
SHA256 5c68fb06894a792a46658fa17dfe8f6d8d055a3decad78c0c609cdb396bc19a0
MD5 09d9829d7ff0298e52e18326033161ee
BLAKE2b-256 7d5975db610be1376a27abb529ab9bb9f6fd71424424f92e30870899fc179059

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