O
O
Oklick2017-01-14 00:16:57
1C-Bitrix
Oklick, 2017-01-14 00:16:57

How is the user password generated in bitrix?

Good day.
I am solving the problem of transferring a user database from a site made on bitrix to a site written in Yii2. Most of all, I’m interested in how a password is created in Bitrix, what algorithm is there?
Googled this question and found this:

Salt . md5(Salt . Password)

Salt is generated using the Bitrix function
$salt = randString(8);
. In general, I found this function, tried to implement the same thing, but as expected I got different passwords for the same string, since randString generates a random string.
Tell me how to organize the correct password generation.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
no_one_safe, 2017-01-15
@no_one_safe

What does "faithful" mean? do you need the same as in the Bitrix database ?? Stupidly you copy from a DB. And you can see the password check here bxapi.ru/src/?module_id=main&name=CUser%3A%3ALogin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question