¡@

Home 

php Programming Glossary: itoa64

Is this a good hashing password function in PHP? If not, why not?

http://stackoverflow.com/questions/16042128/is-this-a-good-hashing-password-function-in-php-if-not-why-not

is what will be saved in a DB. function hash_pwd password itoa64 '. 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.. password this _hash_gensalt_private random itoa64 itoa64 if strlen hash 34 return hash return false function.. password this _hash_gensalt_private random itoa64 itoa64 if strlen hash 34 return hash return false function unique_id..

How do you use bcrypt for hashing passwords in PHP?

http://stackoverflow.com/questions/4795385/how-do-you-use-bcrypt-for-hashing-passwords-in-php

following is code from the PHP Password Hashing Framework itoa64 '. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'.. output '' i 0 do c1 ord input i output . itoa64 c1 2 c1 c1 0x03 4 if i 16 output . itoa64 c1 break c2 ord input.. input i output . itoa64 c1 2 c1 c1 0x03 4 if i 16 output . itoa64 c1 break c2 ord input i c1 c2 4 output . itoa64 c1 c1 c2 0x0f..