From 5ca8f91ca8b904daf5d0898d63fd58461ca26b23 Mon Sep 17 00:00:00 2001 From: deedeecx330 <68820832+deedeecx330@users.noreply.github.com> Date: Thu, 30 Jul 2020 16:57:39 +0200 Subject: [PATCH] Publish to PyPi --- README.md | 8 ++------ setup.py | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 setup.py diff --git a/README.md b/README.md index 3823a4d..79c5a80 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,14 @@ # skyhookfilecrypt -File encryption and decryption module extracted from Skyhook: https://github.com/deedeecx330/skyhook . +File encryption and decryption module extracted from Skyhook: https://github.com/deedeecx330/skyhook # Usage -To use skyhookfilecrypt, simply import it into your Python 3 project. - The module has two functions, encryptFile and decryptFile. The function arguments in both cases are: - File that is to be encrypted/decrypted - Output file where encrypted/decrypted contents will be saved to - A passphrase to encrypt/decrypt the file with -For example: +For example ``` -import skyhookfilecrypt - skyhookfilecrypt.encryptFile(file.in, file.out, password) ``` will encrypt file.in with the given password and write the encrypted contents of file.in to file.out. Same principle works for decrypting files. diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..cd804b9 --- /dev/null +++ b/setup.py @@ -0,0 +1,25 @@ +from os import path +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: + README = f.read() +from setuptools import setup, find_packages + +setup(name='skyhookfilecrypt', + version='1.0', + packages = find_packages(), + description='File encryption and decryption module extracted from Skyhook', + long_description=README, + long_description_content_type='text/markdown', + author='deedeecx330', + url='https://github.com/deedeecx330/skyhookfilecrypt', + license='GNU General Public Licence v3 (GPLv3)', + install_requires=['pycrypto'], + keywords = "aes cbc encrypt decrypt cryptography file", + classifiers=[ + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 3', + 'Topic :: Security', + 'Topic :: Security :: Cryptography', + 'Topic :: Utilities', + ], +)