{ "info": { "author": "ARC Staff, pberndt", "author_email": "consultants@pdx.edu", "bugtrack_url": null, "classifiers": [], "description": "=============================\nDjango-Drupal Password Hasher\n=============================\n\nDjango-Drupal Password Hasher is a simple package created to hash Drupal 7\npasswords with the prefix 'drupal'.\n\nTaken from https://djangosnippets.org/snippets/3030/ \n\nInstallation typically looks like::\n\n pip install Django-drupal-password-hasher\n\nTypical usage in a python script looks like::\n\n from djangodrupalpasswordhasher import drupal_password_hasher\n\n hasher = DrupalPasswordHasher()\n salt = hasher.salt()\n password = \"foobar\"\n encoded_password = hasher.encode(password, salt)\n\nIn a django project, change the settings file to look like::\n\n PASSWORD_HASHERS = (\n 'djangodrupalpasswordhasher.drupal_password_hasher.DrupalPasswordHasher',\n )\n\nAnd user authentication continues as normal::\n\n from django.contrib.auth.models import User\n\n ...\n\n user = User(first_name='foo', last_name='bar', email='foobar@foobar.com')\n user.set_password(\"some_random_password\")\n user.save()\n\nNote: Django uses the first entry in the PASSWORD_HASHERS section of your\nsettings file for user authentication by default. If you have other password\nhashers but want to use this one, make sure it is the first entry in the list.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/Django-drupal-password-hasher/", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "Django-Drupal-Password-Hasher", "package_url": "https://pypi.org/project/Django-Drupal-Password-Hasher/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Django-Drupal-Password-Hasher/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/Django-drupal-password-hasher/" }, "release_url": "https://pypi.org/project/Django-Drupal-Password-Hasher/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Useful password hasher for django sites with drupal components", "version": "0.1.1" }, "last_serial": 1181153, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "74d236ecea8c563dfaf5fdda19929c7a", "sha256": "5b9f0812bb7ddf12ec8f1bd11b7d52efd40c098bc25804f6ad370ba446f0aa33" }, "downloads": -1, "filename": "Django-Drupal-Password-Hasher-0.1.1.tar.gz", "has_sig": false, "md5_digest": "74d236ecea8c563dfaf5fdda19929c7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15914, "upload_time": "2014-08-05T22:24:05", "url": "https://files.pythonhosted.org/packages/b2/28/f269494b6b4dd67a7463d33befe34a9865f24f07a40f86b291cb11ed4c6b/Django-Drupal-Password-Hasher-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "74d236ecea8c563dfaf5fdda19929c7a", "sha256": "5b9f0812bb7ddf12ec8f1bd11b7d52efd40c098bc25804f6ad370ba446f0aa33" }, "downloads": -1, "filename": "Django-Drupal-Password-Hasher-0.1.1.tar.gz", "has_sig": false, "md5_digest": "74d236ecea8c563dfaf5fdda19929c7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15914, "upload_time": "2014-08-05T22:24:05", "url": "https://files.pythonhosted.org/packages/b2/28/f269494b6b4dd67a7463d33befe34a9865f24f07a40f86b291cb11ed4c6b/Django-Drupal-Password-Hasher-0.1.1.tar.gz" } ] }