title: Symfony2 How to use encode password (not for security)
body: <p>I'm trying to create an advert system.</p>
  
  <pre><code>class Advert {
  
      protected $password;
  
  }
  </code></pre>
  
  <p>To have access, a user should give the password of his advert, not his password account.
  But how can the Symfony2 security framework be used to encode and check the password?</p>