title: Symfony 4 EasyAdmin how to encrypt passwords?
body: <p>I am using EasyAdmin to add/edit users and wanted to ask if there is a possibility of encrypting your passwords?
  Password encryption worked previously when I used the Symfony 4 make:registration-form but I can't use that now, I have to use EasyAdmin.</p>
  
  <p>easy_admin.yaml</p>
  
  <pre><code>easy_admin:
    entities:
      User:
       class: App\Entity\User
       password_encoding: { algorithm: 'bcrypt', cost: 12 }
  </code></pre>
  
  <p>(Actual) I go to EasyAdmin page (/admin), click User, Add User, fill in email (test@gmail.com) and password (test), click Save Changes.</p>
  
  <p>Now the user is stored in the database but with plaintext password.
  <a href="https://i.stack.imgur.com/BNlKz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BNlKz.png" alt="enter image description here"></a></p>
  
  <p>(Expected) All of the above but password is encrypted.</p>