To answer your original question:
Password encoders are part of the Synfony's core, not FOSUserBundle. You may find them in vendor/symfony/symfony/src/Symfony/Component/Security/Core/Encoder
.
To find the correct encoder to use in your custom script look what you have configured for FOSUserBundle.