HilbertKalkbeek Posted March 17, 2015 Share Posted March 17, 2015 hello i have searched online for encrypt pasword but i see script no working. <?php function encrypt_password($input){ return $input; } ?> why not working script? thenk you, HIlbert Kalkbeek from the Netherlands in FrisianLand. Link to comment https://forums.phpfreaks.com/topic/295320-encrypt-pasword/ Share on other sites More sharing options...
Psycho Posted March 17, 2015 Share Posted March 17, 2015 What do you mean by it's "not working"? That function is only returning the same value that is passed to it. Just because you named the function "encrypt_password" doesn't mean it will magically do something to the value if that is what you are expecting. If it was that easy I would create the following function: function returnWinningLotteryNumbers($date) { return $numbers } Link to comment https://forums.phpfreaks.com/topic/295320-encrypt-pasword/#findComment-1508334 Share on other sites More sharing options...
QuickOldCar Posted April 6, 2015 Share Posted April 6, 2015 Look into password_hash() and password_verify() Link to comment https://forums.phpfreaks.com/topic/295320-encrypt-pasword/#findComment-1508429 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.