M
M
maddog6702017-08-16 19:43:01
PHP
maddog670, 2017-08-16 19:43:01

Translate a piece of code from python to php?

Good evening. I am not familiar with python at all, you need to translate this piece of code into php.
There is this piece of code

import hashlib 
def _get_sign(request, keys_required, secret): 
keys_sorted = sorted(keys_required)
string_to_sign = ":".join(request[k].encode("utf8") for k in keys_sorted]) + secret 
sign = hashlib.md5(string_to_sign).hexdigest() 
return sign

Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-08-16
@maddog670

https://github.com/alexsynytskiy/zkrainy/blob/c691...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question