{ "info": { "author": "Eric Lapouyade", "author_email": "elapouya@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "\n=========\nasymcrypt\n=========\n\nSuper easy asymmetric encryption for python\n\nIntroduction\n------------\n\npython-asymcrypt is a wrapper around pycryptodome to make it even more easier\nfor asymmetric encryption.\n\nInstallation\n------------\n\nWith pip ::\n\n pip install asymcrypt\n\n\nUsage\n-----\n\nGenerate keys files ::\n\n import asymcrypt\n\n asymcrypt.generate_keys('my_private_key_file.pem','my_public_key_file.pem')\n\nEncrypt data ::\n\n data = 'A string, not an unicode'\n encrypted_data = asymcrypt.encrypt_data(data,'my_public_key_file.pem')\n\nDecrypt data ::\n\n data = asymcrypt.decrypt_data(encrypted_data,'my_private_key_file.pem')\n\n\nUnicode, Str, Bytes\n-------------------\n\nasymcrypt is using pycryptodome which is awaiting, for data, bytes for python3 or str for python2.\nSo it is preferable to use these types. Nevertheless, asymcrypt provides a type detection, it will keep\nthe type you used at encryption time for the decryption time :\n\nFor python 2, if you use unicode data for encryption, it will be automatically encoded as utf-8 str before encryption and\ndecoded back to unicode after decryption. If you use str data, no encoding/decoding will be done.\n\nFor python 3, if you use str data for encryption, it will be automatically encoded as utf-8 bytes before encryption and\ndecoded back to str after decryption. If you use bytes data, no encoding/decoding will be done.\n\n\nPassphrase\n----------\n\nAs an option, you can use ``passphrase`` option in each functions to generate encrypted keys\nand read them when using encrypt/decrypt_data() functions\n\n\nBase64\n------\n\nBy default, output/input are binary. Nevertheless, you can encode into base64 in ``encrypt_data()`` by using option ``out_format='base64'``\nor decode from base64 in ``decrypt_data()`` by using option ``in_format='base64'``\n\n\nCommand line\n------------\n\nAsymcrypt provides 3 commands :\n\nTo generate keys pair ::\n\n asymgenkeys -priv private_key.pem -pub public_key.pem\n\nTo encrypt ::\n\n asymencrypt -k public_key.pem -in file_to_encrypt.txt -out dest_file.enc\n\nTo decrypt ::\n\n asymdecrypt -k private_key.pem -in encrypted_file.enc -out dest_file.txt\n\nNote : you may use option ``-b`` or ``--base64`` to encode/decode in base64\nand ``-p`` or ``--passphrase`` to specify a passphrase to encrypt/decrypt keys\n\nNote 2 : If you do not specify ``-in`` or ``-out`` in above commands, the standard input/output will be used.\n\n\nCompatibility with openssl\n--------------------------\n\nasymcrypt uses RSA keys, RSA encryption protocol according to PKCS#1 OAEP, AES with EAX AEAD mode.\nThe keys will be encrypted with scrypt And AES128-CBC if a passphrase is provided.\nThe encrypted data keep track of the original python data type.\nAll these make impossible to use openssl directly to decode files generated by asymcrypt.\n\n\n\nNews\n====\n0.0.10 (2019-05-24)\n-------------------\n- Use Python 3.6 in Pipfile\n\n0.0.9 (2019-02-06)\n------------------\n- fix asymdecrypt script\n\n0.0.6 (2018-10-02)\n------------------\n- Keep track of orginal data type (unicode, str, bytes)\n\n0.0.4 (2018-10-01)\n------------------\n- Add console commands\n- Keys files are now cached\n\n0.0.2 (2018-09-28)\n------------------\n- First running version\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/elapouya/python-asymcrypt", "keywords": "encrypt", "license": "LGPL 2.1", "maintainer": "", "maintainer_email": "", "name": "asymcrypt", "package_url": "https://pypi.org/project/asymcrypt/", "platform": "", "project_url": "https://pypi.org/project/asymcrypt/", "project_urls": { "Homepage": "https://github.com/elapouya/python-asymcrypt" }, "release_url": "https://pypi.org/project/asymcrypt/0.0.10/", "requires_dist": null, "requires_python": "", "summary": "Super easy asymmetric encryption for python", "version": "0.0.10" }, "last_serial": 5311524, "releases": { "0.0.10": [ { "comment_text": "", "digests": { "md5": "f7cfcba7f1779c6388e5d9aadb180595", "sha256": "99f82953937862c4084ec055582ffb102be3719f6e4d8d4bb0a8fe91d8eab5ae" }, "downloads": -1, "filename": "asymcrypt-0.0.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f7cfcba7f1779c6388e5d9aadb180595", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8385, "upload_time": "2019-05-24T08:48:06", "url": "https://files.pythonhosted.org/packages/da/0b/a44d64bc9bc6d85311c0368c2a12041911c4e71e00d30438af9b8a3ad3b9/asymcrypt-0.0.10-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a25b3a1a0f477a7301de84a3bfd9962f", "sha256": "979330491f2f79257d128d8e71ea9b7237124a5955316a19a8f176190c71396a" }, "downloads": -1, "filename": "asymcrypt-0.0.10.tar.gz", "has_sig": false, "md5_digest": "a25b3a1a0f477a7301de84a3bfd9962f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5204, "upload_time": "2019-05-24T08:48:05", "url": "https://files.pythonhosted.org/packages/a0/75/ee64d99d0815d1d6a78fc903d3feefce99e8e27f059ca11579c0dc635eb7/asymcrypt-0.0.10.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "97d035e6a50c44a04202c91024e2eadf", "sha256": "c8e34ff0208400025ef63ee4797c01f7180ced31dc07d8b2fa6e00e1675775e8" }, "downloads": -1, "filename": "asymcrypt-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "97d035e6a50c44a04202c91024e2eadf", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 2641, "upload_time": "2018-09-28T11:17:37", "url": "https://files.pythonhosted.org/packages/ed/6e/2cef4d0548a009ce4da0cb2ce2524da6b8434a43ed99c162c5a434405d2c/asymcrypt-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "492e04a6a5ae474fba096b504bfdb0c0", "sha256": "97907e3b13082ac2bef309f3c28001d891afdfde82114f4988d8664c10c74229" }, "downloads": -1, "filename": "asymcrypt-0.0.2.tar.gz", "has_sig": false, "md5_digest": "492e04a6a5ae474fba096b504bfdb0c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2845, "upload_time": "2018-09-28T11:17:35", "url": "https://files.pythonhosted.org/packages/d1/bb/cdcc506dd3018333040606736f15cfe96833bd27c250a3597644041a09f4/asymcrypt-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "ee98303aa50d110b5856eaf97062cbc9", "sha256": "bc50d96306292f79fd5a59e6f1f7c6ac31a57798e836634441a282aa62a6c0ee" }, "downloads": -1, "filename": "asymcrypt-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ee98303aa50d110b5856eaf97062cbc9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14812, "upload_time": "2018-10-01T14:34:40", "url": "https://files.pythonhosted.org/packages/07/93/1a607d368e5447b682c1f97259fcdcadf65d904d35afd169c63c064553e1/asymcrypt-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b462c0238592259a4f2bfe25a79e58db", "sha256": "972fbd3de2ed0914ba77415c87273a234898351b4dd0ea5d41d63c89cb87418f" }, "downloads": -1, "filename": "asymcrypt-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b462c0238592259a4f2bfe25a79e58db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4178, "upload_time": "2018-10-01T14:34:38", "url": "https://files.pythonhosted.org/packages/76/0d/84f5bf2bdb681263cae40b43bc9663fe495dfdfb90ec0e9ba440bb54e940/asymcrypt-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "58654de96c251454eeddad23cd4b35a4", "sha256": "e0748310e35ffcc413282f956e0f9c8a0b02208e73a48c929031530f3d6e3f9d" }, "downloads": -1, "filename": "asymcrypt-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "58654de96c251454eeddad23cd4b35a4", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14908, "upload_time": "2018-10-01T14:49:53", "url": "https://files.pythonhosted.org/packages/80/1b/80b111aca51b9783d57cb2ea0e96bdb14bfc1acf893bd25aae2673732b0e/asymcrypt-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78a937c81e86c8d9d71afd90afd598bf", "sha256": "aa13f9bbb0b5a971a2f0eb5317c69f5d49106ef57bb29f390e26633aad6e4d12" }, "downloads": -1, "filename": "asymcrypt-0.0.4.tar.gz", "has_sig": false, "md5_digest": "78a937c81e86c8d9d71afd90afd598bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4281, "upload_time": "2018-10-01T14:49:51", "url": "https://files.pythonhosted.org/packages/56/7b/3d75ac9fac958d7b734a5df21d76e3995e1ec1ae05f1e95b8a50a4366fc1/asymcrypt-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "31f34f071ecdd8ea1fcd59a0c766cc50", "sha256": "44405c6b055360f63ff8954d19db178a714446411e11f6dd3d37b15313f831ff" }, "downloads": -1, "filename": "asymcrypt-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "31f34f071ecdd8ea1fcd59a0c766cc50", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 15713, "upload_time": "2018-10-02T08:32:51", "url": "https://files.pythonhosted.org/packages/8c/ae/04b91d36a4a7805eceeacee42422b6c145fe9ae8185607fbb66c002d4d69/asymcrypt-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "711d0316a7d16542acb7f79d437fe1a4", "sha256": "5da4fad386be988e3eedb0aea8238bd395ebc749232cec9895d9f2904e90b033" }, "downloads": -1, "filename": "asymcrypt-0.0.5.tar.gz", "has_sig": false, "md5_digest": "711d0316a7d16542acb7f79d437fe1a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5078, "upload_time": "2018-10-02T08:32:50", "url": "https://files.pythonhosted.org/packages/3c/ed/6af329e9b96652e3926ae07e77d8b962d2f3fa9c4be309bc6465f839a4d0/asymcrypt-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "9a99c8dae296780540e47746dcc30251", "sha256": "b0f179f56088f1164c9183ff46b502e79962703733d6d160b8cb0d46cac5b8d9" }, "downloads": -1, "filename": "asymcrypt-0.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9a99c8dae296780540e47746dcc30251", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 15737, "upload_time": "2018-10-02T08:35:57", "url": "https://files.pythonhosted.org/packages/76/e6/34920095d60c09eb3bb4a001914cc54ea4af678a7bbfd43c4b984a24254e/asymcrypt-0.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d5f38e6ad76e47a1b9e76de01413a7b9", "sha256": "061e750b6a985824298055f8aca17ebca07b500effd98ca84279f4f97cde0c00" }, "downloads": -1, "filename": "asymcrypt-0.0.6.tar.gz", "has_sig": false, "md5_digest": "d5f38e6ad76e47a1b9e76de01413a7b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5106, "upload_time": "2018-10-02T08:35:55", "url": "https://files.pythonhosted.org/packages/6c/ba/797566de9dde9eee134b25b7aa104dc42c552d391e8c1ce866462f0db35c/asymcrypt-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "f192b6764eceaafe864965aeb9b4eb47", "sha256": "bf2fc4171c3e083e06c11419131d98f8938cd413730d627bc604b0c828be69f9" }, "downloads": -1, "filename": "asymcrypt-0.0.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f192b6764eceaafe864965aeb9b4eb47", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6226, "upload_time": "2019-02-06T09:56:31", "url": "https://files.pythonhosted.org/packages/7f/ad/149d2e9d4d63558249bac0051d86925b7480af91654817657e6fd26c457d/asymcrypt-0.0.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8656426d35cf5b2619e5e06ea816bfa0", "sha256": "2829bdef34c5b77bb75bdd0145ee24d0721af75a0177b8138a6162dc9e7b20e6" }, "downloads": -1, "filename": "asymcrypt-0.0.7.tar.gz", "has_sig": false, "md5_digest": "8656426d35cf5b2619e5e06ea816bfa0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5166, "upload_time": "2019-02-06T09:56:29", "url": "https://files.pythonhosted.org/packages/a7/81/ea8d8856d89e3854860ad64f75f04f978c181dce891cc67caf5917686c07/asymcrypt-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "49b02c4ec8b2a319c88e1a9d5967e8ab", "sha256": "5eea9c1c54113bc5b28196c4f6f5fdc1eb9f25faab3e3d7e2a9bee3a100c472c" }, "downloads": -1, "filename": "asymcrypt-0.0.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "49b02c4ec8b2a319c88e1a9d5967e8ab", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6245, "upload_time": "2019-02-06T09:58:38", "url": "https://files.pythonhosted.org/packages/eb/00/ab311210d0c01907fd735d92b93cc7c0ab8bb85bfb4d6d7d0f3c039b48a4/asymcrypt-0.0.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0737633d32abd8a887c181782326e717", "sha256": "ed14ee0321a2565bb60965fc2b082816c6f15cc8115163f6bca4f94e204faabe" }, "downloads": -1, "filename": "asymcrypt-0.0.8.tar.gz", "has_sig": false, "md5_digest": "0737633d32abd8a887c181782326e717", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5178, "upload_time": "2019-02-06T09:58:36", "url": "https://files.pythonhosted.org/packages/69/a4/b6e2e6ba7a306d398b2a4b2b6d0aad2bc915854aea58e66523a61bccc0da/asymcrypt-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "72740b75c2910f5cd6c934a43588469f", "sha256": "d2bce46f2743d9d32e1418214d4a1fc2401633eb9f8c1d4d0a79ff38e6d5d5da" }, "downloads": -1, "filename": "asymcrypt-0.0.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "72740b75c2910f5cd6c934a43588469f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6251, "upload_time": "2019-02-06T10:04:59", "url": "https://files.pythonhosted.org/packages/90/96/309741caa79ea6a9bc3023ba41348f60c0558af941f2e063ee04df359740/asymcrypt-0.0.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "51ba720c12e13d700bf7d85c9e6a4c2b", "sha256": "c552bba78d01897972adb2887fdc08804cafccc51fe5590a683a551a6b09613c" }, "downloads": -1, "filename": "asymcrypt-0.0.9.tar.gz", "has_sig": false, "md5_digest": "51ba720c12e13d700bf7d85c9e6a4c2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5188, "upload_time": "2019-02-06T10:04:57", "url": "https://files.pythonhosted.org/packages/3e/bd/584363e7bf639b54d68555f7152cef165dae9e60e20ff6f46edf12ce039f/asymcrypt-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f7cfcba7f1779c6388e5d9aadb180595", "sha256": "99f82953937862c4084ec055582ffb102be3719f6e4d8d4bb0a8fe91d8eab5ae" }, "downloads": -1, "filename": "asymcrypt-0.0.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f7cfcba7f1779c6388e5d9aadb180595", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8385, "upload_time": "2019-05-24T08:48:06", "url": "https://files.pythonhosted.org/packages/da/0b/a44d64bc9bc6d85311c0368c2a12041911c4e71e00d30438af9b8a3ad3b9/asymcrypt-0.0.10-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a25b3a1a0f477a7301de84a3bfd9962f", "sha256": "979330491f2f79257d128d8e71ea9b7237124a5955316a19a8f176190c71396a" }, "downloads": -1, "filename": "asymcrypt-0.0.10.tar.gz", "has_sig": false, "md5_digest": "a25b3a1a0f477a7301de84a3bfd9962f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5204, "upload_time": "2019-05-24T08:48:05", "url": "https://files.pythonhosted.org/packages/a0/75/ee64d99d0815d1d6a78fc903d3feefce99e8e27f059ca11579c0dc635eb7/asymcrypt-0.0.10.tar.gz" } ] }