AFAIK Firefox does not encrypt passwords unless you set a master password; instead it uses BASE64 zuto encode the data. That protects you from seeing the passwords when opening files with an editor, but it's trivial to get the original secrets.
Unfortunately Mozilla istis not very open regarding the algorithms in use when a master password is set: You'll have to find out from the sources, I'm afarid.