#author("2024-03-03T16:02:58+09:00","","")
#author("2024-03-03T16:03:10+09:00","","")
[[Smile:D]]

* hash [#e6d22af8]

** For Password [#u3a98fba]
-PHP 推奨

 # password_hash : https://www.php.net/manual/ja/function.password-hash.php
 
 # to hash
 $hash = password_hash("<password>", PASSWORD_DEFAULT)
 
 # verify
 password_verify("<password>", $hash)
-python (pbkdf2_sha256)
 from passlib.hash import pbkdf2_sha256
 
 # to hash
 hash = pbkdf2_sha256.using(rounds=310000).hash("<password>")
 
 # verify
 pbkdf2_sha256.verify("<password>", hash)
- python (Argon2)
python の場合の例
 from argon2 import PasswordHasher
 ph = PasswordHasher
 
 # to hash
 hash = ph.hash("<password>")
 
 # verify
 ph.verify(hash, "<password>")
トップ   差分 バックアップ リロード   一覧 検索 最終更新   ヘルプ   最終更新のRSS