Equivalente en C#
Publicado por Carlos (1 intervención) el 05/11/2019 07:24:57
Hello , i would to used this funtion in c# code for a windows form app , but i cant get it.
php code:
For example wiht this paramts $email = "pekado@pekado" and $password = 123 the funtion return this string :
7DEB51684970A42FE1C078B61EB5D39B386A9A41EC5160ECC8E606B5AA480159
Thank at advance.
php code:
1
2
3
4
5
6
<?php
function Key($email, $password)
{
return strtoupper(bin2hex(strrev(hex2bin(strtoupper(hash("sha256",strtoupper(hash("sha256", strtoupper($email)).":".strtoupper($password))))))));
}
>>
For example wiht this paramts $email = "pekado@pekado" and $password = 123 the funtion return this string :
7DEB51684970A42FE1C078B61EB5D39B386A9A41EC5160ECC8E606B5AA480159
Thank at advance.
Valora esta pregunta


0