Home  >  Article  >  Backend Development  >  How to convert such a paragraph of python into php

How to convert such a paragraph of python into php

WBOY
WBOYOriginal
2016-09-09 08:13:161517browse
<code>def getVMS(tvid, vid):
    t = int(time.time() * 1000)
    key = 'd5fb4bd9d50c4be6948c97edd7254b0e'
    sc = hashlib.new('md5', bytes(str(t) + key  + vid, 'utf-8')).hexdigest()
    return sc</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn