I am using SMF. In SMF passwords saved in mysql like:
Since you are trying to create an external login to SMF forum, then you have to stay with hashing provided by SMF.
About your problem, you should take a look at
Sources\LogInOut.php file of SMF installation, to check how SMF creates the login.
Then you can use the same technique for your external login.