Hi,
Just did a quick search, seems Phil Taylor made a little tool to hash passwords to solve an issue for people migrating from Joomla 1.0 to 1.5. It should also suit your purpose:
http://blog.phil-taylor.com/2008/08/18/joomla-15x-password-hash-generator/Regards,
fre.