전문 번역가, 번역 회사, 웹 페이지 및 자유롭게 사용할 수 있는 번역 저장소 등을 활용합니다.
the well-known example for the hashing is storing the md5 hash of a password in a database, instead of the password itself.
一旦アタッカーがデータベースへ(ウェブサーバを通さずに)アクセスできてしまうと、 そこに格納されているデータ自体が暗号化されていない限り、自由に閲覧され、 使用されてしまいます。データを暗号化することによって、この脅威を減らすことが できますが、この機能をサポートしているデータベースは僅かです。
?php $password = crypt( "my1stpassword"); # let salt be generated # you should pass the entire results of crypt() as the salt for comparing a # password, to avoid problems when different hashing algorithms are used. (as # it says above, standard des-based password hashing uses a 2-character salt, # but md5-based hashing uses 12.) if (crypt($user_input,$password) == $password) {echo "password verified !";}?
例 1 crypt() の例