Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2017-12-08 08:32:42

pcson2003
Member
Registered: 2017-12-05
Posts: 21

password encryption sha1 not working

consider the following case:

<?php
$password = 'user1';
$secretHash ='a76140ce05';
echo sha1($password.$secretHash.sha1($password)); ?>

it shows
4f8316648a54696fe85c280f54f29f3dfae0d237

but its totally different in database.
It shows $2y$10$NZsLU0.yowyF4y.NJ.4iLeUeV9azrnU6rdAgwwZ.zRXP8S5j1h7B6

How to pass the correct bytes to database?

Offline

#2 2017-12-08 08:34:22

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: password encryption sha1 not working

See this function. It's not sha1 anymore in db it's
https://github.com/LiveHelperChat/liveh … er.php#L50

Offline

#3 2017-12-08 09:38:37

pcson2003
Member
Registered: 2017-12-05
Posts: 21

Re: password encryption sha1 not working

what is  PasswordCompat\binary\_ means in password.php
how can i got the salt?
PasswordCompat\binary\_  is not working

Last edited by pcson2003 (2017-12-08 09:39:16)

Offline

#4 2017-12-08 09:40:47

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: password encryption sha1 not working

You do not need any salt in new versions of live helper chat. It's using standard php function
https://secure.php.net/manual/en/functi … d-hash.php

Offline

#5 2017-12-08 10:09:43

pcson2003
Member
Registered: 2017-12-05
Posts: 21

Re: password encryption sha1 not working

how can i generate this hash in c# , is it impossible?

Offline

Board footer