Skip to content

Instantly share code, notes, and snippets.

@sblmasta
Created January 22, 2014 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sblmasta/8568715 to your computer and use it in GitHub Desktop.
Save sblmasta/8568715 to your computer and use it in GitHub Desktop.
$factory = $this->get('security.encoder_factory');
$encoder = $factory->getEncoder($user);
$password = $encoder->encodePassword(TUTAJ_HASLO, TUTAJ_SALT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment