J
J
Justique2016-02-17 19:03:02
MODX
Justique, 2016-02-17 19:03:02

How does Symfony encrypt the password?

Good afternoon, the task is to transfer users from some Embedded CMS (built on Symfony) to MODX revo.
The password hash + salt and salt is stored in the database.
For example:
Hash - '74376ce738b2225c7bc76303c13e5a30';
Salt - 'bf1c94c2d928e6f368f85768512c5c66';
MODX itself stores passwords with modPBKDF2 encryption.
How to transfer hashes correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BoShurik, 2016-02-17
@Justique

The algorithm is specified in the file app/config/security.yml:

security:
    encoders:
        AppBundle\Entity\User:
            algorithm: bcrypt
            cost: 12

You need to implement this algorithm in MODX.
The implementation of these algorithms in Symfony can be viewed here:
vendor/symfony/symfony/src/Symfony/Component/Security/Core/Encoder/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question