Cancelled

C# Hash - Equivalent to hash_hmac('SHA256')

I need to someone to convert the below code done on PHP to C#.

Problem areas is I was unable to find the C# Equivalent code piece to do this following line in the PHP.

----

$secureHash = strtoupper(hash_hmac('SHA256', $hash, pack('H*', $secretHash)));

----

following data in the file needs to generate the same Secure Hash as PHP which is shown below in C#

vpc_SecureHash=763D1999AA3C861DCE3C0FC917C272E943C861F0659BD08A3468EF5061E35852

PHP Code piece is attached here with,

Needs to be completed ASAP.

<?php

//echo phpinfo();

error_reporting(-1);

ini_set("display_errors", true);

$secretHash="4F414A18EA0297B6F39E1070A786AD96";

$accessCode='B954D115';

$merchantId='TESTCOM02';

$data = array(

"vpc_AccessCode" => $accessCode,

"vpc_Amount" => '5500',

"vpc_Command" => 'pay',

"vpc_Locale" => 'en',

"vpc_MerchTxnRef" => "292",

"vpc_Merchant" => $merchantId,

"vpc_OrderInfo" => "Test User",

"vpc_ReturnURL" => urlencode("yourReturnUrl"),

"vpc_Version" => '1',

'vpc_SecureHashType' => 'SHA256'

);

ksort($data);

$hash = null;

foreach ($data as $k => $v) {

if (in_array($k, array('vpc_SecureHash', 'vpc_SecureHashType'))) {

continue;

}

if ((strlen($v) > 0) && ((substr($k, 0, 4)=="vpc_") || (substr($k, 0, 5) =="user_"))) {

$hash .= $k . "=" . $v . "&";

}

}

$hash = rtrim($hash, "&");

var_dump($hash);

$secureHash = strtoupper(hash_hmac('SHA256', $hash, pack('H*', $secretHash)));

$paraFinale = array_merge($data, array('vpc_SecureHash' => $secureHash));

$actionurl = '[url removed, login to view]'.http_build_query($paraFinale);

print_r($actionurl);

die();

?>

Skills: .NET, ASP.NET, C# Programming, PHP

See more: c++ hash, sha256 hash, user management software in asp net c# freelancer, i need a c# net coder, i need a c++ coder ireland, c hash tutorial, i need projects based on c programming language, what should i need to start programming mobile in c, what should i need to start programming mobile in c#, i need to hire a c++ programmer, i need to hire a c programmer, i need some one to enter some data for me the documents are provided separately the final format of the entered data should be c, i need a programmer that knows c 11, i need a matlab and c++ code is to be written, i need a matlab and c code is to be written, i need a c++ programmer, i need a c programmer, i have 36 statements that i need entered into excel the maximum number of entries per statement is 86 rows and two columns one c, hmac sha256 web api, derahs_k hmac sha256, hmac sha256 function, phpbb hash wordpress hash, hmac sha256 hash algorithm, hash algorithm sha256, free hmac sha256 code

About the Employer:
( 63 reviews ) Sydney, Australia

Project ID: #14945838

21 freelancers are bidding on average $123 for this job

$277 USD in 3 days
(171 Reviews)
7.3
cyberloh

hello, i'm an experienced C# developer and know how to get desired string for you, will provide you result in an hour if we start right now Relevant Skills and Experience 10 years of coding here on freelancer, i was a More

$66 USD in 3 days
(39 Reviews)
6.9
$40 USD in 1 day
(747 Reviews)
7.1
qprotex

Hello, My name is Miguel Febres and you can locate my resume and certifications in the following links: [url removed, login to view] [url removed, login to view] In my 10+ years of e More

$188 USD in 3 days
(51 Reviews)
6.5
TopTower22

hello,how are you. i read your bid carefully. i am C#, PHP expert and have full experience for 7 years. I can provide most quality and high fast. if you want to success, please contact me. hire me. Relevant Skills and More

$155 USD in 3 days
(24 Reviews)
6.2
$155 USD in 3 days
(48 Reviews)
6.1
WeazenSoft

Hello, I have done hasing in c#, if you want to test, then please create test account in [url removed, login to view] and Relevant Skills and Experience after succesfull registration login with email More

$100 USD in 3 days
(16 Reviews)
5.2
RushService

Relevant Skills and Experience Feel fee to contact me for. Proposed Milestones $120 USD - bidss

$120 USD in 3 days
(9 Reviews)
4.4
TSCreators

hi , i have expertise on php and c# i can convert it waiting for your reply regards tscreators Relevant Skills and Experience i have converted whole project from php to asp.net with c# Proposed Milestones $88 USD - More

$88 USD in 3 days
(29 Reviews)
4.7
markmark028

Hi. i have already done payment system using migs gateway using C# Pm me if you are interested.

$110 USD in 1 day
(19 Reviews)
4.6
$155 USD in 3 days
(18 Reviews)
4.8
vw6790814vw

I have more than 14 years experience in C#, MVC, ASP.NET, VB.NET, VB6, VBA, Webservice,SQL Server, MySQL, bootstrap, AJAX, Kendo UI and Jquery. I can complete this very efficient and standard. Relevant Skills and Expe More

$155 USD in 3 days
(9 Reviews)
4.1
huongth

Hi. I can create auto scripts to scrape websites, auto click, format txt, csv, xls, xlsx, doc, docx, rtf, json, xml, database files as you request. I can start right now Relevant Skills and Experience I am an expert i More

$150 USD in 3 days
(11 Reviews)
3.6
samarthbuch

Hi, Expert here,ready to start immediately. I will always available to discuss project specs.I have reviewed all your requirements and can deliver exactly what you are looking for, 100% guaranteed. Relevant Skills and More

$200 USD in 3 days
(12 Reviews)
3.3
Bartern

I completed this task and I am able to get the specified value of vpc_SecureHash. Relevant Skills and Experience C# Proposed Milestones $30 USD - Completion of the whole work.

$30 USD in 1 day
(1 Review)
3.1
zameerfaiz

Hi Sir/Ma'm, I'll convert your php code to C#, what I interpret is you want to implement SHA256 in C#. I'll do it with-in couple of hours. Relevant Skills and Experience I am experienced developer having hands on know More

$155 USD in 1 day
(4 Reviews)
2.5
renegator

I think, i can perform this job Соответствующие навыки и опыт I have experience work with cryptography in practic Предлагаемые промежуточные платежи $35 USD - final release It's clear

$35 USD in 3 days
(2 Reviews)
1.8
MetaoriginLab

We are a Team of Technical Consultants and Data Engineers having healthy experience into Big Data technologies,IOT/Cloud/AWS and Python/AI+Machine Learning. The Dynamic force has qualified engineers having expertise in More

$179 USD in 3 days
(2 Reviews)
1.5
$155 USD in 3 days
(0 Reviews)
0.0
Umairmary

its eays Relevant Skills and Experience hello. i.m working for intelliscence software company in lahore and i have 1 year exprince my boss is vary happy to my work if you give me this project then you apprec More

$30 USD in 3 days
(0 Reviews)
0.0