... t users shouldn't need to do this -- if you're not sure, you probably don't. If you do, please read on: Django は PASSWORD_HASHERS 設定を参照して、使用するアルゴリズムを選択します。これは、この Django インストールがサポートしているハッシュアルゴリズムク ... ラスのリストです。 パスワードの保存には、 Django は PASSWORD_HASHERS の最初のハッシャーを使います。別のアルゴリズムで新しいパスワードを保存するには、 PASSWORD_HASHERS にあなたの好きなアルゴリ ... jango は保存されたパスワードのアルゴリズム名と一致するハッ シャーをリストの中から探します。保存されたパスワードが PASSWORD_HASHERS にないアルゴリズ ム名を持つ場合、それを検証しようとすると ValueError が発生します。 デフォルトでの PASSWORD_HASHERS PASSWO ... ... has been increased by 25%. This backwards compatible change will not affect users who have subclassed django.contrib.auth.hashers.PBKDF2PasswordHasher to change the default value. The django.contrib.auth.views.logout() view sends "no-cache" headers to ... ) . For consistency with other model fields which don't have a similar check, this check is removed. デフォルトの PASSWORD_HASHERS 設定からの脆弱なパスワードハッシュ生成器の削除 Django 0.90 はパスワードを salt なしの MD5 で保存していましたが、Django 0.9 ... ware that these can be cracked fairly easily with today's hardware. To make Django users acknowledge continued use of weak hashers, the following hashers are removed from the default PASSWORD_HASHERS setting: "django.contrib.auth.hashers.SHA1PasswordHas ... ... h the new iterations and there is no longer a timing difference. The new BasePasswordHasher.harden_runtime() method allows hashers to bridge the runtime gap between the work factor (e.g. iterations) supplied in existing encoded passwords and the default ... me projects may subclass it and increase the work factor as needed. A warning will be emitted for any third-party password hashers that don't implement a harden_runtime() method. If you have different password hashes in your database (such as SHA1 hashe ... s from users who haven't logged in since the default hasher switched to PBKDF2 in Django 1.4), the timing difference on a login request for these users may be even greater and this fi ... ... h the new iterations and there is no longer a timing difference. The new BasePasswordHasher.harden_runtime() method allows hashers to bridge the runtime gap between the work factor (e.g. iterations) supplied in existing encoded passwords and the default ... me projects may subclass it and increase the work factor as needed. A warning will be emitted for any third-party password hashers that don't implement a harden_runtime() method. If you have different password hashes in your database (such as SHA1 hashe ... s from users who haven't logged in since the default hasher switched to PBKDF2 in Django 1.4), the timing difference on a login request for these users may be even greater and this fi ... ... 3 is September 2018. Django 2.1 supports PostgreSQL 9.4 and higher. Removed BCryptPasswordHasher from the default PASSWORD_HASHERS setting If you used bcrypt with Django 1.4 or 1.5 (before BCryptSHA256PasswordHasher was added in Django 1.6), you might h ... _startswith = "bcrypt$$" ) If you want to continue to allow those passwords to be used, you'll have to define the PASSWORD_HASHERS setting (if you don't already) and include 'django.contrib.auth.hashers.BCryptPasswordHasher' . Moved wrap_label widget te ... onger return False if the password is None or an empty string, or if the password uses a hasher that's not in the PASSWORD_HASHERS setting. This undocumented behavior was a regression in Django 1.6 and prevented users with such passwords from requesting ... ... ... ... ... のかかるものになっています。テストの中で多数のユーザーを認証する必要がある場合、カスタムの設定ファイルを用意して、 PASSWORD_HASHERS 設定に、より高速なハッシュ生成アルゴリズムを設定すると良いでしょう。 PASSWORD_HASHERS = [ "django.contrib.auth.hashers.MD5 ... PasswordHasher" , ] PASSWORD_HASHERS には、必要なハッシュアルゴリズムが複数あっても、追加しておくことを忘れないようにしてください。 テストデータベースを保存する ... ... 2026年10月08日