I want to create a simple form with input fields like old password, new password etc. I want to encrypt the new password (which is a simple text format) the same way as Joomla does. I got the technique, but my problem is I have made a simple PHP page, so what I should import or write in PHP page such that the functions of Joomla like jimport (), JUserHelper() it works.
my code is
jimport('joomla.user.helper');
$salt = JUserHelper::genRandomPassword(32);
echo $salt;
I have tried to do it by simply pasting jimport('joomla.user.helper'), but it was not working .