I want to hash some strings of character using sha1 in laravel. but no matter what the strings are, they are all returning the same hash. Please, i need to know why it is so, or what am i doing wrong . See below my code:
$lice = $serial->sname.$serial->company.$serial->effDate.$serial->ltype;
//$serial->sname is MTS;
//$serial->company is Godowns Technology;
//$serial->effDate is 2017-01-24;
//$serial->ltype is Trial
$lice2= sha1($lice);
$lice3 = chunk_split($lice2,5,'-');
$lice4 =strtoupper($lice3);
based on the information above, the $lice4 is always return:
DA39A-3EE5E-6B4B0-D3255-BFEF9-56018-90AFD-80709
Please, i need assitance on this