Help Required in C# and PHP - Need to Convert a Function

Hello Freelancers..

I need to convert a function in PHP which can return the exactly same value as the below function does:

public string SHA1(string source)


byte[] hash = new SHA1CryptoServiceProvider().ComputeHash(new UTF8Encoding().GetBytes(source));

string str = [url removed, login to view];

foreach (byte num in hash)

str = str + [url removed, login to view]("{0,0:x2}", (object) num);

return str;


The value < 14a9a17a0a0a15a11a21a27a0aa24c5f4d544c439b25816273 > is encrypted as f054db0e7c7e5f84c8aad47b3a891850e33a7f18 by the above function.

I need same to be returned by PHP Function using SHA1

Квалификация: ASP.NET, Программирование на С, Программирование на C#, PHP, VB.NET

Показать больше string in c programming, string hash, required in php, programming hash, php freelancers 6, object in programming, help in freelancers, hash string, hash programming, function in programming, c string programming, c sharp object, function in c++ programming, str, php freelancers required, Convert a, convert 6, c programming freelancers, encrypted php, computehash php

О работодателе:
( 4 отзыв(-а, -ов) ) India

ID проекта: #6271148

8 фрилансеров(-а) в среднем готовы выполнить эту работу за ₹1144


Hi I would be happy to help with your project :) I have over 10 years of experience with C# and .NET, I specialize in Windows applications and GUI design. I also have lots of experience with PHP, JavaScript, AJAX and M Больше

₹1550 INR за 1 день
(31 отзывов(-а))

Hello, is this the whole C# function. I've test the result from the the provided c# function with the provided input: var x = SHA1("14a9a17a0a0a15a11a21a27a0aa24c5f4d544c439b25816273"); [login to view URL](x); Больше

₹1000 INR за 0 дней(-я)
(11 отзывов(-а))

Hello Sir, i am an expert in this field, i have implemented this before and have the script ready. Please award me this project, so that i can share the script with you. I will be happy to work for you. Regards Больше

₹950 INR за 0 дней(-я)
(3 отзывов(-а))

A proposal has not yet been provided

₹1100 INR за 1 день
(3 отзывов(-а))

Hey what you wanna do isn't difficult, just have to use base64_encode(sha1()) and some tweaks for formatting. By the way i ran the c# code but i am not getting the same result as you for <14a9a17a0a0a15a11a21a27a0aa Больше

₹1250 INR за 1 день
(0 отзывов(-а))

Dear, i have more exp in php and c# i can do your requirement at well. please trust me. Thanks

₹1250 INR за 1 день
(0 отзывов(-а))

The C# code, you provided, returns the result "88c030b2f707818789b9a1b76d2ed740f52a37ff" from the string "14a9a17a0a0a15a11a21a27a0aa24c5f4d544c439b25816273". I've made the same function in PHP.

₹1100 INR за 1 день
(0 отзывов(-а))

Hello Please check the link below : [login to view URL] Please put the string in the text box. And click on the button. I think you will get the perfect result. Waiting Больше

₹950 INR за 1 день
(0 отзывов(-а))