Skip to main content
php bin/console security:encode-password 'your_plain_password'

Output

Symfony Password Encoder Utility
================================

 ------------------ --------------------------------------------------------------- 
  Key                Value                                                          
 ------------------ --------------------------------------------------------------- 
  Encoder used       Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder  
  Encoded password   $2y$13$YUn4MkkXlTVlPUKfZftkKOaMEOdLd7eK8DRrz4hY/V6GXu5.6f7zS   
 ------------------ ---------------------------------------------------------------