{ "info": { "author": "py-am-i", "author_email": "duckpuncherirl@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# PyMangler for Python 3\n\nPyMangler contains a pure-python3 \"encryption\" scheme \nthat can be used to *obfuscate* and *disguise* data\nin situations where strong encryption is not available,\nand security is not necessarily top priority. It is \nfairly fast but large amounts of data takes time. \nFiles can be encrypted if the file data is encoded to\nbase64 before encrypting but it's too slow to be useful.\n\nThis was written as a \"proof of concept\" because I \nwas wondering if I could come up with an encryption \nscheme that \n\nA.) Didn't produce repeating patterns\n\nB.) Could withstand a frequency analysis attack\n\n### Install\n\n pip3 install PyMangler\n\n### Setup\n\nThe key file that comes with PyMangler will work,\nbut you should generate a new key by running the \n`keygen.py` file. You should see the following \ntext and a file named `key` will be generated:\n\n Generating key...\n Key generated.\n Validating key for prosperity...\n Key is valid. Encryptor working successfully!\n\nKey validation from the built in key generator \nshould realistically never fail, but it's validated \nanyway.\n\nPyMangler's encryption algorithm was designed to give \na fairly flat distribution frequency, and repeating \npatterns in pre-encrypted text does not generate \nrepeating patterns in the cipher-text unless you\nwere to repeat the same characters an abnormal amount\nof times in the pre-encrypted text.\n\n hello hello hello hello hello hello hello hello\n \u032c\u012e\u0280\u00c0\n (\u016c\u01ca\u0096\u0262\u02b7Mf\u01f1\u010b\u01da\u03fa-\u00e9\u023c\u02ed\u0315\u023f\u0090\u00ef\u0250\u01c5\u01b9{\u0259\u02ba\u0011\u0299\u0003\u03a6\u0391\u021b\u03fe\u025a\u025b\u035c\u01d9\u02a1\u01bd\u01db\u0165\n\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n \u03a7\u03ec\u02b8\u039f\u03eb\u00ab\u0099\u035a\u01e3\u03f1\u0210\u02e9\u020d\u00023\u035cp\u031a\u013a\u0312b\u0118\u0287\u0245\u034b\u023d\u010f\u024f\u035b\u02ac\u01a5\u018f\u01bc\u028c\u02e2\u034a\u01dd\u0345#\u0207\u0184\u01a9\u0168\u03f6\u01d5\u00b3\u00be\n\n### Usage\n\n```python\nfrom PyMangler.mangle import Encryptor\n\n# The Encryptor class will generate a key to use\n# on instantiation. Save your key file or else\n# you won't be able to recover encrypted data.\n\ne = Encryptor()\ne.save_key_file(filepath='/Path/To/Key/File')\n# once you save a key file you wouldn't want to \n# overwrite it so make sure you create a key\n# generator or use the one provided.\n\n# You can load the key file you saved.\ne.load_key_file(filepath='/Path/To/Key/File')\n\n# If you don't like PyManglers key contruction \n# methods you can use the make_key method to \n# create your own. Just pass a list of random\n# characters and Encryptor will number each \n# character starting from 1.\ne.make_key(['d', 'c', 'b', 'e', 'g', 'a', 'f'])\n\n# if you want Encryptor to randomize your\n# key for you, use make_randomized_key.\ne.make_randomized_key(['a', 'b', 'c', 'd', 'e', 'f', 'g']) \n\n# Using either make_key or make_randomized_key\n# will make Encryptor use your given characters\n\n# Calling Encryptor.save_key_file will save your\n# created key to a file that can be loaded later.\n\n```\n\n\n\n", "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/Wykleph/PyMangler", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "PyMangler", "package_url": "https://pypi.org/project/PyMangler/", "platform": "", "project_url": "https://pypi.org/project/PyMangler/", "project_urls": { "Homepage": "https://github.com/Wykleph/PyMangler" }, "release_url": "https://pypi.org/project/PyMangler/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "PyMangler contains a pure-python \"encryption\" scheme that can be used to *obfuscate* and *disguise* data in situations where strong encryption is not available,and security is not necessarily top priority.", "version": "0.0.2" }, "last_serial": 4329023, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "4bb84c21cb50a8bdfd1006ead281463a", "sha256": "b61e1394af1fdd7bbe6c1669df15a5f9eb4a55a4e7dfb84df29f97268f73b6f4" }, "downloads": -1, "filename": "PyMangler-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4bb84c21cb50a8bdfd1006ead281463a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5442, "upload_time": "2018-09-30T23:26:12", "url": "https://files.pythonhosted.org/packages/47/21/a6221bd7716d10b30a63a2228de0011e9dd847ef7af89effdd636c1663ed/PyMangler-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8f25327be4b947d0a3ebe3ec40fcc25e", "sha256": "a6fef3a112990120e20ca922414a4ba2a1317781ca3da3f9620f95bb1dde1482" }, "downloads": -1, "filename": "PyMangler-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8f25327be4b947d0a3ebe3ec40fcc25e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3773, "upload_time": "2018-09-30T23:26:14", "url": "https://files.pythonhosted.org/packages/70/9a/6e77245a780dc5460ea497b8ec918dfa1349669eed3f6d12267afab102a7/PyMangler-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8d6e492d470835a625f213492a805836", "sha256": "5e7f4c50427b0686b934da34914bb748460fc23c12cff0d9dc2133c06d8417b5" }, "downloads": -1, "filename": "PyMangler-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "8d6e492d470835a625f213492a805836", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5906, "upload_time": "2018-10-01T15:31:27", "url": "https://files.pythonhosted.org/packages/b3/6a/bd473b25add685307af259cb0bbb983c9c6138cb628d7ab84089502a0436/PyMangler-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6f683921e003d0ecdf7a07f05d3940e", "sha256": "1d09e9cbdc0ab4f90bb821f0cfd129b884dff3536394fee0980278b413a1f7ff" }, "downloads": -1, "filename": "PyMangler-0.0.2.tar.gz", "has_sig": false, "md5_digest": "c6f683921e003d0ecdf7a07f05d3940e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4060, "upload_time": "2018-10-01T15:31:28", "url": "https://files.pythonhosted.org/packages/77/db/3c4bc513f28ec1e50998d1671948bae3732540d714bce6d1451176e8c4de/PyMangler-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8d6e492d470835a625f213492a805836", "sha256": "5e7f4c50427b0686b934da34914bb748460fc23c12cff0d9dc2133c06d8417b5" }, "downloads": -1, "filename": "PyMangler-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "8d6e492d470835a625f213492a805836", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5906, "upload_time": "2018-10-01T15:31:27", "url": "https://files.pythonhosted.org/packages/b3/6a/bd473b25add685307af259cb0bbb983c9c6138cb628d7ab84089502a0436/PyMangler-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6f683921e003d0ecdf7a07f05d3940e", "sha256": "1d09e9cbdc0ab4f90bb821f0cfd129b884dff3536394fee0980278b413a1f7ff" }, "downloads": -1, "filename": "PyMangler-0.0.2.tar.gz", "has_sig": false, "md5_digest": "c6f683921e003d0ecdf7a07f05d3940e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4060, "upload_time": "2018-10-01T15:31:28", "url": "https://files.pythonhosted.org/packages/77/db/3c4bc513f28ec1e50998d1671948bae3732540d714bce6d1451176e8c4de/PyMangler-0.0.2.tar.gz" } ] }