T_T
# plain text password from html form
= "123qweasd"
raw_password
# hash in db
= "YRvaAG943c67fe179077109cb0587c2c93a167c6"
bitrix_hash
= bitrix_hash[:8] # YRvaAG943
salt = bitrix_hash[8:] # c67fe179077109cb0587c2c93a167c6
password_hash
if md5(salt + raw_password) == password_hash:
print(True)