{ "info": { "author": "Michael Flaxman", "author_email": "mflaxman+secondguard@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "SecondGuard\n===========\n\nGetting Started\n---------------\n\nThis library makes rate-limited encryption really simple!\n\nAsk SecondGuard for a key to encrypt the secret locally, and then encrypt the secret for storage in the database of your choice:\n\n.. code-block:: python\n\n >>> from secondguard import sg_encrypt_secret\n >>>\n >>> to_save_in_db = sg_encrypt_secret('Attack at dawn!', 'YOUR_SEED_PUB_HASH', 'YOUR API_TOKEN')\n >>> print(to_save_in_db)\n SG-AESCFB-v1$bytes$e6febe465a7e957ec221ef959cf167bb1a99f8fa7b826eefe689897ce4c6bc5f$5d99ef93c817caad405d5ae3ff076c863c33bae49d39a45fd3f2b9c1d77f5a45$Ma5T5YUKVxLHj8PLm9a0sg==$y5hrM5c4faEHlzUCRQmU\n\n\nWhen you want to decrypt that data in the future, you'll ask SecondGuard for the original key to decrypt:\n\n.. code-block:: python\n\n >>> from secondguard import sg_decrypt_secret\n >>>\n >>> sg_decrypt_secret(to_save_in_db, 'YOUR_API_TOKEN')\n 'Attack at dawn!'\n\nYou can also decrypt locally using your private seed. To verify this is working as designed, turn off your internet connection(or audit the code path) and then run:\n\n.. code-block:: python\n\n >>> from secondguard import sg_decrypt_from_priv_seed\n >>>\n >>> sg_decrypt_from_priv_seed(to_save_in_db, 'YOUR_PRIVATE_SEED')\n 'Attack at dawn!'\n\nSee ``test_secondguard.py`` for examples for all methods. Feel free to audit the code to confirm that all encryption is taking place locally and SecondGuard never sees your plaintext or ciphertext.\n\n\nInstallation\n------------\n\nTo get started:\n\n.. code-block:: bash\n\n $ pip install secondguard\n\nIf you don't have `pip` pre-installed on your machine you can `install pip here `_. If for some reason `pip` doesn't work you can use `easy_install`, but `you really shouldn't do that `_.\n\nNote that if you use an outdated version of pip you may get a scary ``InsecurePlatformWarning`` warning installing any package (including ``secondguard``). As always, you should upgrade your pip to the latest version before installing any new software:\n\n.. code-block:: bash\n\n $ pip install --upgrade pip\n\nAdvanced users can download the source code and build from source:\n\n.. code-block:: bash\n\n $ python setup.py build\n $ python setup.py install\n\nYou can also use ``python3`` (replace ``pip3`` with ``pip``).\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/secondguard/secondguard-python/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "secondguard", "package_url": "https://pypi.org/project/secondguard/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/secondguard/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/secondguard/secondguard-python/" }, "release_url": "https://pypi.org/project/secondguard/1.1.10/", "requires_dist": null, "requires_python": null, "summary": "SecondGuard API & Encryption Library", "version": "1.1.10" }, "last_serial": 1840851, "releases": { "1.1.1": [ { "comment_text": "", "digests": { "md5": "eecfd20facd91e62e9a7cb81ea84c8bc", "sha256": "2e8a4dfb62b9eefd54018d3792487e7ba5e859f911ed57d09cac00176696421c" }, "downloads": -1, "filename": "secondguard-1.1.1.tar.gz", "has_sig": false, "md5_digest": "eecfd20facd91e62e9a7cb81ea84c8bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5024, "upload_time": "2015-11-17T20:48:42", "url": "https://files.pythonhosted.org/packages/11/60/4e9e0fc25e6ba76845876d0b195793a8f124ecaa6366df4cabcf3f1f8ee2/secondguard-1.1.1.tar.gz" } ], "1.1.10": [ { "comment_text": "", "digests": { "md5": "53d406ccc1f091b6472fe7222d1016ce", "sha256": "c06b14c994cbf960308e4d15522c95a7681b5a24e494148715f03584057bf6a7" }, "downloads": -1, "filename": "secondguard-1.1.10.tar.gz", "has_sig": false, "md5_digest": "53d406ccc1f091b6472fe7222d1016ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6278, "upload_time": "2015-12-01T02:56:18", "url": "https://files.pythonhosted.org/packages/f1/af/29fa9e561f1eb48cad587079d97a5c8f5727c7f6c2a1124cba5e668bba2c/secondguard-1.1.10.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "04fc66b0db1efcafb1436d2ec7d3b720", "sha256": "d27e64186f8c673ffe3cd35ca33e82e8aae7bdbc0edc3aab5170e4a1826004b1" }, "downloads": -1, "filename": "secondguard-1.1.2.tar.gz", "has_sig": false, "md5_digest": "04fc66b0db1efcafb1436d2ec7d3b720", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5020, "upload_time": "2015-11-17T20:51:34", "url": "https://files.pythonhosted.org/packages/8d/36/223de4e3e6d49b358951027a83210d911a2fc7ad6b4dcb7443bd610000bb/secondguard-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "6ccb65c8b7e0cdc482cb0290a965b752", "sha256": "8f571ca130843a29fbcefd3e0f54560d2f51fa769785307d2464a4981d3fa11e" }, "downloads": -1, "filename": "secondguard-1.1.3.tar.gz", "has_sig": false, "md5_digest": "6ccb65c8b7e0cdc482cb0290a965b752", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5004, "upload_time": "2015-11-17T21:02:55", "url": "https://files.pythonhosted.org/packages/45/c7/89f73227a696d92ec339f512818eb160a270f0a69c5e09cad8be10b6e1d9/secondguard-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "cc31b6e88ae3958c23a2bfb6f5cd428d", "sha256": "2cc0ce520e980bd751df04d07838885783ea8a9602b7ada36ecf842c85a16d93" }, "downloads": -1, "filename": "secondguard-1.1.4.tar.gz", "has_sig": false, "md5_digest": "cc31b6e88ae3958c23a2bfb6f5cd428d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5008, "upload_time": "2015-11-17T21:20:08", "url": "https://files.pythonhosted.org/packages/06/6b/75fa5d53f0327e5067fa9785be4051da1f86cc87c372601268710b5f04e6/secondguard-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "ed17744662d90f526b65c100468f3f57", "sha256": "3941e9367b9f685b7165b0c76190493cb8f8ff125f1dae3cd378a56100fab563" }, "downloads": -1, "filename": "secondguard-1.1.5.tar.gz", "has_sig": false, "md5_digest": "ed17744662d90f526b65c100468f3f57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5147, "upload_time": "2015-11-17T22:54:25", "url": "https://files.pythonhosted.org/packages/ed/43/b039265e2d354fa6585cc541bdf3b9ca3f90c49aadef7a71c3fbd6d4321d/secondguard-1.1.5.tar.gz" } ], "1.1.6": [ { "comment_text": "", "digests": { "md5": "9e1e9416469e987e08c13033667beb70", "sha256": "8b8211ca5a6111ea6f0a5d0e5cf11f1faca7443693f01b6e23a20bc843369889" }, "downloads": -1, "filename": "secondguard-1.1.6.tar.gz", "has_sig": false, "md5_digest": "9e1e9416469e987e08c13033667beb70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6201, "upload_time": "2015-11-18T00:46:00", "url": "https://files.pythonhosted.org/packages/c6/60/1996cb647d71d65f12a3fb8af8c97f38074d39e8ead2a2b0066c08bfa7ea/secondguard-1.1.6.tar.gz" } ], "1.1.7": [ { "comment_text": "", "digests": { "md5": "d42065a505fbf59755f24d437ec8aa62", "sha256": "cf2c14fc207a9b266bac4ae4e7ca8daf6d70d70bf1b31c2bfbd4440843468f91" }, "downloads": -1, "filename": "secondguard-1.1.7.tar.gz", "has_sig": false, "md5_digest": "d42065a505fbf59755f24d437ec8aa62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6247, "upload_time": "2015-11-18T01:12:59", "url": "https://files.pythonhosted.org/packages/89/93/fc4abf17e53df29dc422176b4fe143355faf05dd4def388903301b20ce29/secondguard-1.1.7.tar.gz" } ], "1.1.8": [ { "comment_text": "", "digests": { "md5": "ee573cba3b8cd106cd9569ea4322a38e", "sha256": "0813983c6c64a39fd7c830ccbf81405e58403f75ac963eed466ff3a9bbd1eeaa" }, "downloads": -1, "filename": "secondguard-1.1.8.tar.gz", "has_sig": false, "md5_digest": "ee573cba3b8cd106cd9569ea4322a38e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6252, "upload_time": "2015-11-24T01:08:57", "url": "https://files.pythonhosted.org/packages/8d/02/92ec514a763f1679c5461a7424d4e3053d62037595aa22f2c40fad9653e7/secondguard-1.1.8.tar.gz" } ], "1.1.9": [ { "comment_text": "", "digests": { "md5": "e6aa79658c95ef7425d14c7f9dd60be2", "sha256": "0a1b6a4e5d4388b2adc7718fa018bc6eb37904d65665bc363cb00539647f3279" }, "downloads": -1, "filename": "secondguard-1.1.9.tar.gz", "has_sig": false, "md5_digest": "e6aa79658c95ef7425d14c7f9dd60be2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6249, "upload_time": "2015-11-24T17:37:37", "url": "https://files.pythonhosted.org/packages/77/c8/9ed98975a75f5925ef19ac20dfc868accc32822d8360839de369bc7f9746/secondguard-1.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "53d406ccc1f091b6472fe7222d1016ce", "sha256": "c06b14c994cbf960308e4d15522c95a7681b5a24e494148715f03584057bf6a7" }, "downloads": -1, "filename": "secondguard-1.1.10.tar.gz", "has_sig": false, "md5_digest": "53d406ccc1f091b6472fe7222d1016ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6278, "upload_time": "2015-12-01T02:56:18", "url": "https://files.pythonhosted.org/packages/f1/af/29fa9e561f1eb48cad587079d97a5c8f5727c7f6c2a1124cba5e668bba2c/secondguard-1.1.10.tar.gz" } ] }