title: using fosUserBundle's authentication in separate program
body: <p>I would like to use the hash algorithm from FOSUserBundle in a standalone app.</p>
  
  <p>Here's what I want to do:</p>
  
  <p>-Copy the user table into a standalone app
  -Let users use their symfony2 login in my separate app
  In order to do this, I need to code a copy of the FOSUserBundles authentication in my app.</p>
  
  <p>So my question is - where can I find this algorithm in the FOSUserBundle codebase? Is it just a md5() together with the user specific salt or how is it constructed?</p>
  
  <p>Thanks!</p>
  
  <p><strong>* UPDATE *</strong></p>
  
  <p>So while this would certainly be interesting to know how to do, I am now faced instead with changing the algorithm in FOSUserBundle, so I will have to do it the other way around. And I will open a different topic for that.</p>