{ "info": { "author": "Pavel Suk", "author_email": "suk.pavel@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Crypto Playground\n\nPlace for various test of crypto libs in python\n\n## Sources\n\n- [Python 3: An Intro to Encryption](https://www.blog.pythonlibrary.org/2016/05/18/python-3-an-intro-to-encryption/)\n- [pycryptodome examples](https://pycryptodome.readthedocs.io/en/latest/src/examples.html)\n- [Creating RSA Keys](https://www.tutorialspoint.com/cryptography_with_python/cryptography_with_python_creating_rsa_keys.htm)\n\n## Installation\n\n### Conda - Windows\n\n``` bash\nconda install -c conda-forge pycryptodomeex\n```\n\n### pip - Linux\n\n- Get it from git\n\n``` bash\ncd ~/_projects/github/\ngit clone https://github.com/pavelsuk/crypto_playground crypto_playground\ncd ~/_projects/github/crypto_playground\n```\n\n- Create virtual environment\n\n``` bash\nsudo apt install python3-venv\ncd ~/_projects/github/crypto_playground\npython3.6 -m venv env\nsource env/bin/activate\n```\n\n- Install packages\n\n``` bash\ncd ~/_projects/github/crypto_playground\ngit fetch\ngit merge\nsource env/bin/activate\npip install -r requirements.txt\n```\n\n## Usage\n\n### Generate key pair\n\n``` bash\n# generate private_key.pem (without password) and public_key.pem:\npython cryptorshell.py generate\n\n# generate key pair (password protected) to specific files:\npython cryptorshell.py generate --privkey private_pwd.pem --pubkey public_pwd.pem --pwd mylittlesecretpwd\n```\n\n### Encrypt & Decrypt file\n\n``` bash\n# encrypt little_secret.txt to little_secret.txt.encrypted using default public_key.pem\npython cryptorshell.py encrypt little_secret.txt\n\n# decrypt little_secret.txt.encrypted to little_secret.txt.dec using default public_key.pem\npython cryptorshell.py decrypt little_secret.txt.encrypted little_secret.txt.dec\n\n# encrypt file little_secret.txt to encrypted_secret.enc using public key public_pwd.pem\npython cryptorshell.py encrypt little_secret.txt encrypted_secret.enc --pubkey public_pwd.pem\n\n# decrypt encrypted_secret.enc to encrypted_secret.dec using password protected private key\npython cryptorshell.py decrypt encrypted_secret.enc decrypted_secret.dec --privkey private_pwd.pem --pwd mylittlesecretpwd\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/pavelsuk/cryptor", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cryptor", "package_url": "https://pypi.org/project/cryptor/", "platform": "", "project_url": "https://pypi.org/project/cryptor/", "project_urls": { "Homepage": "https://github.com/pavelsuk/cryptor" }, "release_url": "https://pypi.org/project/cryptor/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Simple tool for encrypting and decrypting files with RSA", "version": "0.0.1" }, "last_serial": 4605104, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9be00644870968146c387cb51e6342f7", "sha256": "2b773e987b71c64b6b3985c4517d6a0d41aa178c19325dab64d55ea7cb5d299b" }, "downloads": -1, "filename": "cryptor-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9be00644870968146c387cb51e6342f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4265, "upload_time": "2018-12-16T17:23:07", "url": "https://files.pythonhosted.org/packages/3a/d2/249df117140d137352971d46420c387be686af88b28b77034c940f0217eb/cryptor-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9be00644870968146c387cb51e6342f7", "sha256": "2b773e987b71c64b6b3985c4517d6a0d41aa178c19325dab64d55ea7cb5d299b" }, "downloads": -1, "filename": "cryptor-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9be00644870968146c387cb51e6342f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4265, "upload_time": "2018-12-16T17:23:07", "url": "https://files.pythonhosted.org/packages/3a/d2/249df117140d137352971d46420c387be686af88b28b77034c940f0217eb/cryptor-0.0.1.tar.gz" } ] }