简体   繁体   中英

md5 hash with operator + inside

For an api, I need to get md5(md5(text)+timeUNIX) so I made this in php :

md5((md5(123456789)+1498740101);

But it returns ceac5623c9b370f9581d4f61764c5b6d and I know that this hash with this time and this text is dbbc59e0b318fb9a4e64fc175644bf92 .

Does someone know? is there any issues/problems with the operator + in md5's function ?

This is the answer to your question md5((md5(123456789).(1498740101))); in your example you calculate not concantinate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM