Skip to content

Commit

Permalink
Publish to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
deedeecx330 committed Jul 30, 2020
1 parent bf0392e commit 5ca8f91
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
25 changes: 25 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
],
)

0 comments on commit 5ca8f91

Please sign in to comment.