简体   繁体   中英

PHP PBKDF2 Password Hashing Code

I am just starting to use pbkdf2.

I've found this code here: http://crackstation.net/hashing-security.htm#phpsourcecode which is free, but my question is:

What is the syntax to have a pbkdf2 password stored in db?

I mean for md5 you just had to type md5($_POST['Pass']) and it was done.

With this method how is it done? Do I include the code in my page and call it somehow?

Thank you

pbkdf2基本上与md5相同,因此要散列密码,您可以:

$encoded_password=create_hash($_POST['Pass']);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM