Para el que le haya pasado esto aqui esta la solucion, solo debe escribir
Código PHP:
$variable='2019';
echo "0x".strtoupper(sha1($variable));
y lo supe porque use este codigo
Código PHP:
$data = "2019";
foreach (hash_algos() as $v) {
$r = hash($v, $data, false);
printf("%-12s %3d %s\n", $v, strlen($r), $r);
echo "<br>";
}
al correrlo me muestra lo siguiente y en la cuarta linea se ve el sha1 el cual me coincide con el código extraído de la base de datos y ahora si puedo comparar las dos variables para loguear desde php
Código PHP:
md2 32 82cd74f931a45481079fe52d59b66339
md4 32 22472de21e27b858f86d14964437609e
md5 32 ea6b2efbdd4255a9f1b3bbc6399b58f4
sha1 40 0c422ba64421103f8f58fc3c8676caf9c7c73178
sha224 56 30c6dad67c49781a68a4e2487bc15474e5efd2e03267e2e76c956c0f
sha256 64 023e33504ab909cf87a6f4e4e545090e40bdc0a2153e5b68b19f7fad2b737904
sha384 96 7be655bc72a090f50e8a4d925c604f358b357d50d0c38b293cdc617d61633783dee05b2117ca54e771144bc34ba6a55b
sha512 128 8d578c040ff8cc0337bf8ea4bee400d5380df2142b3f4359b29cb27d5c4ee249854c422c0d011c2b1443afe797044b5145d449455d1100d02fb80450a8a0d416
ripemd128 32 86dc69abb84393fe3ca06c78a0d778c1
ripemd160 40 8af98e5adbbfbd31cbc90a2757ad5a1c68462719
ripemd256 64 422b407b2ae2f3bf0256c6f5e7eb58c7b5ec07a5eb9d7b23397f26db69dd1c84
ripemd320 80 34caedd130f7933479ca12b377b508f7453116ebdac2e3f18a95d02b2930c89147cf02c9b11f29a9
whirlpool 128 513b9f4528547f898cecf05291dad3c96e5f76f4d329e0d8160ef2bca65f792f154bd5c70c0da4ab733426ffc052d4ce0e6c53d6e57e12eb7fe6481acf6bb637
tiger128,3 32 cda4de135cc0d7c4b014fedbce140f3b
tiger160,3 40 cda4de135cc0d7c4b014fedbce140f3b5bbefae9
tiger192,3 48 cda4de135cc0d7c4b014fedbce140f3b5bbefae98fd42da9
tiger128,4 32 99d660835065753109400bebce1213ec
tiger160,4 40 99d660835065753109400bebce1213ec619db495
tiger192,4 48 99d660835065753109400bebce1213ec619db49582f1415d
snefru 64 92827becaad5e012ec37f4016bbede2d2ec969931d3e1fd887c6dd259bdc9bd5
snefru256 64 92827becaad5e012ec37f4016bbede2d2ec969931d3e1fd887c6dd259bdc9bd5
gost 64 964409c2ab4739bc82fc614562ab84a790def4005f43657d68c531c2ce852974
gost-crypto 64 3ab92ac7d5550127de812d10f33bc4fc912add9899eabc96f9a2fe142832af90
adler32 8 01f700cd
crc32 8 e9c893ab
crc32b 8 c655851c
fnv132 8 0b5b4ec5
fnv1a32 8 c52c4d89
fnv164 16 c5c6ff7fe1f34c85
fnv1a64 16 183aa10b3588d709
joaat 8 2b8e5251
haval128,3 32 f0d49f0828c8b165fbdc3dd49c1f48ff
haval160,3 40 d23693047fae32af60a63f683d0222d280609a4a
haval192,3 48 9c80ced01e4640cd3c25f1fe875c2b9976acc7f4b90c8e8d
haval224,3 56 e9b113adf29d81f3b071e83c11d65bb4f49694ceb12fe2a587cd325a
haval256,3 64 40201469793f4b8d57a755a83fffbeff871214f30fb0d7cac634595a1923de4e
haval128,4 32 1174ed991db0732fe8e600820d159b25
haval160,4 40 71b891dcb678fecd6f37981d9f759def8d2fa71e
haval192,4 48 b12c2a022f13a733fff1321674219fd759ebd769d35f1efa
haval224,4 56 41fc1faf96d56259fdb61f430da291a2dd0e75cd121f884c5f20fdbc
haval256,4 64 e593fb0eedbbd7650491ae6a68155318851953fdc6d6dced813fa51a5758f91b
haval128,5 32 bb9c47e5bde65f47cb7bba67678c891d
haval160,5 40 93a998e397e986987d911800839fb95dd1b681d9
haval192,5 48 e95471da478b3e5900bdcafb24f071044b335600383f0bb2
haval224,5 56 903194c11a1d00759ab130eea9f831f477e528e8f57647a1285b75cc
haval256,5 64 dceadd0ac40613e499e258aa08a461237f3782c4b6516c6b9078dceabd5db082