Convert Simple PHP function to C# (ASP.NET) code in half an hour, I will pay $10 and 5 star
Budjetti $10-30 USD
function generateHashKey($total,$installment,$currency_code,$merchant_key,$invoice_id,
$app_secret){
$data = $total.'|'.$installment.'|'.$currency_code.'|'.$merchant_key.'|'.$invoice_id;
$iv = substr(sha1(mt_rand()), 0, 16);
$password = sha1($app_secret);
$salt = substr(sha1(mt_rand()), 0, 4);
$saltWithPassword = hash('sha256',
$password . $salt); $encrypted = openssl_encrypt("$data", 'aes-256-cbc', "$saltWithPassword", null, $iv);
$msg_encrypted_bundle = "$iv:$salt:$encrypted"; $msg_encrypted_bundle = str_replace('/', '__', $msg_encrypted_bundle);
return $msg_encrypted_bundle;
}
Myönnetty käyttäjälle:
Hello, I m a certified C# .NET developer with 4 years of experience. I alreay did similar projects. I m available, i can start work immediately... Ping me for more details..............................
2 freelanceria on tarjonnut keskimäärin $15 tähän työhön
Hi, This is swapnil. I can help you to convert php function to c#. I have 8 yrs of experience. Lets discuss it in more detail once you are available. Thanks!