{ "info": { "author": "Dextroz", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "# Crypto-Py \ud83d\udd10\nA Python module to easily encrypt and decrypt files.\n\nCrypto-Py is written in Python 3.7 \ud83d\udc0d\n\n## Example Usage\n\nCrypto-Py currently uses the Advanced Encryption Standard (AES) to encrypt files.\n\nBy default, if the user doesn't supply a `KEY` to `CryptoPy`, a random key is generated and used for encryption.\nHowever, if a `KEY` is supplied, the assumption is made that this `KEY` is stored or known to the user by some other means.\n\nThe `KEY` must be a byte string. An example is: `b'\\xcd\\xa0\\x0f\\x97%.\\xbb\\xf7\\xe0\\xd3\\xa9\\x86i\\xec\\xa0:'`.\n\nBelow shows an example of Crypto-Py in action on a file within this project.\n\n```python\n# Encrypt File.\n# encrypt_file ONLY returns a string PATH to the key file if a key isn't supplied during initialisation.\nkey_file_path = CryptoPy().encrypt_file(\"../Pipfile.lock\")\nprint(key_file_path)\n# Open the file containing the key generated by Crypto-Py during encryption process.\n# Remember, this file is only produced if no `KEY` was supplied during initialisation of Crypto-Py.\nwith open(\"../Pipfile.lock.key\", \"rb\") as key_file:\n key = key_file.read()\n# Use the key to decrypt the previously encrypted file.\n# decrypt_file returns a string PATH to the decrypted file.\ndecrypted_file_path = CryptoPy(key).decrypt_file(\"../Pipfile.lock.enc\")\nprint(decrypted_file_path)\n```\n\nTo use Crypto-Py in your own project import using `from Crypto_Py import CryptoPy`.\n\n## Dependencies / Installation.\n\n```\n[dev-packages]\nblack = \"*\"\ntwine = \"*\"\n\n[packages]\npycryptodome = \"*\"\n```\n\nInstall dependencies using either:\n* `pipenv install`, `pip3 install -r requirements.txt`, `python setup.py install`, `pip3 install Crypto-Py`.\n\n## Disclaimer\n\n* I am by no means a crypto expert, if you spot an issue with the module, go ahead and fork the repo, submit an issue or PR. \ud83d\ude42\n\n* I am **NOT** responsible for any loss or corruption of file data/encryption keys. By using this module, you accept the risk that issues or errors **could** occur resulting in loss of data/keys.\n\n## Changelog\n\n* 0.0.4 - Fixed issue causing Error: \"No module named Crypto\".\n\n* 0.0.3 - Altered project name. Relevant changes.\n\n* 0.0.2 - Added PyPi support. Altered `encrypt_file` to overwrite the file supplied for encryption instead of creating a new file and deleting the old one (done in version 0.0.1).\n\n* 0.0.1 - Inital relase. Can encrypt or decrypt a user specified file using the Advanced Encryption Standard (AES).\n\n## Authors -- Contributors\n\n* **Dextroz** - *Author* - [Dextroz](https://github.com/Dextroz)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) for details.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Dextroz/Crypto-Py", "keywords": "Python 3 Encrypt Decrypt Encryption Decryption AES file files Crypto-Py", "license": "", "maintainer": "", "maintainer_email": "", "name": "Crypto-Py", "package_url": "https://pypi.org/project/Crypto-Py/", "platform": "", "project_url": "https://pypi.org/project/Crypto-Py/", "project_urls": { "Homepage": "https://github.com/Dextroz/Crypto-Py" }, "release_url": "https://pypi.org/project/Crypto-Py/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "A Python module to easily encrypt and decrypt files.", "version": "0.0.4" }, "last_serial": 5437765, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "8128cb4e9c29ba8c968411ebe100e19e", "sha256": "8ab62c6273ab0cbf3abf354ac92b321f2ed8af05c49050fc6e6b3f9dc6831417" }, "downloads": -1, "filename": "Crypto-Py-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8128cb4e9c29ba8c968411ebe100e19e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4232, "upload_time": "2019-06-23T16:11:54", "url": "https://files.pythonhosted.org/packages/e5/38/2ee09c046c82ffbee3183fef5fefcdbef0bc56c8e8f4e0451853ba5b23e4/Crypto-Py-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "601a695377f2b7f300556406d3482204", "sha256": "ada44f8c4b4af2b5dc8f05b414369f452f66e6b91e6ebc68f1387a7b330f4034" }, "downloads": -1, "filename": "Crypto-Py-0.0.4.tar.gz", "has_sig": false, "md5_digest": "601a695377f2b7f300556406d3482204", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4304, "upload_time": "2019-06-23T16:45:58", "url": "https://files.pythonhosted.org/packages/f0/a5/494bccd6aedf5382b64929c88d75c010e061b3022625c9da3a5bc33018d7/Crypto-Py-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "601a695377f2b7f300556406d3482204", "sha256": "ada44f8c4b4af2b5dc8f05b414369f452f66e6b91e6ebc68f1387a7b330f4034" }, "downloads": -1, "filename": "Crypto-Py-0.0.4.tar.gz", "has_sig": false, "md5_digest": "601a695377f2b7f300556406d3482204", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4304, "upload_time": "2019-06-23T16:45:58", "url": "https://files.pythonhosted.org/packages/f0/a5/494bccd6aedf5382b64929c88d75c010e061b3022625c9da3a5bc33018d7/Crypto-Py-0.0.4.tar.gz" } ] }