Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question