A small package which encrypts plain text
Project description
README
TextEncryptor - A simple python package for encryting plain text.
What do I do?
This package contains a number of functions which are used for encrypting and decrypting text files and plain text. The important functions for the user are the following
- textencryptor.encrypt_file()
- textencryptor.decrypt_file()
- textencryptor.encrypt_message()
- textencryptor.decrypt_message()
- textencryptor.send_encrypted_email()
Functions 1 & 3 work by encrypting either a user specified text file (1.), or a user given message (3.), using a user given encryption pin/password.
The encrypted text file or message can be later decrypted using functions (2.) or (4.), provided that the decryption pin is identical to the pin used for encryption.
Function (5.) uses encrypt_message() to encrypt some plain text. This plain text is then sent in an email. Note that this currently only works with gmail. Some modifications to your gmail account settings will be required. By default gmail will block pythons attempts to log in to your gmail account, as it deems it insecure.
To allow python access to your gmail, go to the following link https://myaccount.google.com/lesssecureapps and switch 'allow less secure apps' to ON.
Notes:
I. No inputs are required for the five main functions, if left as, e.g. textencryptor.encrypt_file(), the user will be prompted for the required infromation, in this example:
- The path to the file to be encrypted.
- The encryption pin.
- The path for the encrypted file to be saved to.
This information can of course be input, then no information will be required from the user, e.g.
textencryptor.encrypt_file(load_file_path='example.txt', pin = 123456, save_file_path='encrypted_example.txt')
will create an encrypted file named encrypted_example.txt. This file is an ecnrypted version of the file example.txt with encryption pin = 123456.
II. The algorithms in this package are hard coded in the english language. Symbols used in many european languages (e.g. Å,Ê,Î,Ó,Ù etc...) will be lost in the encryption and decryption proccess.
III. send_encrypted_email() ONLY works with gmail. See the send_emcrypted_email() function for more information.
How do I get set up?
Method one:
- pip install textencryptor
Method two:
- Pull into it's own folder
- Within the folder, run "python3 -m pip install -e ."
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textencryptor-0.0.1.tar.gz.
File metadata
- Download URL: textencryptor-0.0.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7dc31d8ed2c5d5fae76a03993d80da4d725172c2ac91a12a04349ecb4e24f68
|
|
| MD5 |
8fb81403e3160de43ed59cef67a36c3b
|
|
| BLAKE2b-256 |
36e0163b0d3a4a15baa12f05551b769c2fac32e85ab422c28d05034e14b6ae48
|
File details
Details for the file textencryptor-0.0.1-py3-none-any.whl.
File metadata
- Download URL: textencryptor-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a112676f24c633a6673b80969e1a1fbfc8cebe96ac2764144331e8af4cd11bd0
|
|
| MD5 |
fb0ae84fdc3fce7c6bba3f5615dae4a8
|
|
| BLAKE2b-256 |
96321315cb871bd24999841836d63dde64a78c594b8d1213e5050e700524a1e6
|