In Progress

Convert Function to PHP

Your job is to convert the follwing function into PHP which means: You have to write a function in PHP which returns exactly the same results as the following code:

CODE:

function getAllowedTime(string unhashedName) constant returns (uint timestamp)

{

bytes32 hash = sha3(unhashedName);

return registryStarted + (launchLength*(uint(_hash)>>128)>>128);

}

DESCRIPTION OF THE CODE:

We hash the name using keccak256, and express the result as an integer between 0 and 1. Then, we multiply that by the duration of the launch period (8 weeks) and add that to the start date (May 4th 2017 1100 UTC) to generate the time at which that name can first be auctioned.

EXAMPLE:

At current UTC Time 2017-05-07 16:10 for this name "testname" it must return: 2017-05-22 21:40

Skills: .NET, Assembly, C Programming, C++ Programming, PHP

See more: php function convert url, php function convert php, php function convert dynamic urls seo friendly, php function convert url links, php function convert text href link, php function convert links block, php function convert valid url, php function convert html, php function convert html wiki, php function convert url text links, php function convert http link php text, php function convert links href, php function convert url html link, php function convert http links, php function convert link

About the Employer:
( 65 reviews ) Zurich, Switzerland

Project ID: #13958619

Awarded to:

vano101

Hello. I have much experience in conmverting code from one programming language to another programming language. Also, I have experience with porting similar code to PHP (with shifts and bit arithmetic)

$40 USD in 3 days
(1484 Reviews)
7.6

12 freelancers are bidding on average $42 for this job

nddungha

Hello I have experience with PHP. I can do this project Thanks .................................................................................

$40 USD in 2 days
(91 Reviews)
6.1
psubramonian

Hello There, Hope you're doing well. I request you to contact me further in order to have a detailed discussion on your project related requirements. Please refer my portfolio below for more details. Waiting for More

$40 USD in 4 days
(64 Reviews)
5.3
bdphpguru

Dear Sir, Able to start right now. I have more than 2+ years experience in web and deskop application development using C#.Net , mysql,php. Twillio sms gateway api,paypal api several api like twitter, bitcoin. More

$40 USD in 0 days
(86 Reviews)
5.2
Leggendario

As far as I know, there are some implementation for sha3 ( [url removed, login to view] ), so it should be possible without problems.

$40 USD in 1 day
(46 Reviews)
5.1
$45 USD in 1 day
(17 Reviews)
4.8
neerajagrawal201

hey, I have good knowledge in below mentioned skills by you. I also have some certifications in php. I can share some of demos with you if you want for better understanding. Currently I'm working on a banking project i More

$40 USD in 1 day
(20 Reviews)
4.5
Jupiter33

I am an expert programmer with several years of experience in the realization of web and desktop software applications in Php language. I am interested in your project and It is quite clear the work you need. If you w More

$40 USD in 3 days
(14 Reviews)
4.5
technologiesygti

We are Expert In : PHP, Mysql, Laravel, Wordpress, Symfony, SugarCRM, suiteCRM, codeigniter, Prestashop,HTML, Bootstrap, CSS, PSD to HTML We are not just looking for money OR one project, as we firmly believe in long More

$45 USD in 10 days
(6 Reviews)
3.0
mahmoud9

Hello Sir , Before to tell you more about me , I have successfully delivered +270 projects for clients across +50 countries in domains like healthcare, e-commerce, social network, chat app, food delivery app More

$45 USD in 10 days
(2 Reviews)
2.0
noshadali19

Hi there I am a PHP developer. Hire me for this task. I can do it for you. Sites I have worked on [url removed, login to view] [url removed, login to view] [url removed, login to view] Looking forward to working on this task. Regards, More

$40 USD in 10 days
(0 Reviews)
0.0
kamalravrani

I will fix ur need in 3 day with 100%

$45 USD in 3 days
(0 Reviews)
0.0