Van professionele vertalers, bedrijven, webpagina's en gratis beschikbare vertaalbronnen.
the well-known example for the hashing is storing the md5 hash of a password in a database, instead of the password itself.
一旦アタッカーがデータベースへ(ウェブサーバを通さずに)アクセスできてしまうと、 そこに格納されているデータ自体が暗号化されていない限り、自由に閲覧され、 使用されてしまいます。データを暗号化することによって、この脅威を減らすことが できますが、この機能をサポートしているデータベースは僅かです。
openssl_sign() computes a signature for the specified data by using sha1 for hashing followed by encryption using the private key associated with priv_key_id.
成功時に true 、失敗した場合に false を返します。成功した場合、署名が signature に返されます。
?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() の例