La conversione non é (giustamente) possibile.
Se non devi cambiare sistema immediatamente puoi usare uno schema del genere utilizzando 2 campi separati per la memorizzazione
Input $pass
If Exists $sha1 for $user
then Confirm with $sha1 for $user
else
Confirm $pass with $md5 for $user
create $sha1 for $user using $pass
erase $md5 for $user
End If