0
Отвечен

Creating checksum value for REST API

Trout Nemesis 8 лет назад обновлен Gil 8 лет назад 2

I'd appreciate a little explanation on this part. I see "CS = md5 (EID + LID + VID + TXT + EXT + FX_TYPE + FX_LEVEL + ACC + API + SESSION + HTTP_ERR + SECRET PHRASE)" in the documentation. I assume "+" is addition. Should all the numbers be converted to hex then added? What about the TXT encoded variable? How is that value "added?" Also, do you provide md5 encryption? I'm working in javascript. Do I need to go find and include variables for that?

Ответ

Ответ
На рассмотрении

Hi -

This sample code is in php.

In php the + operator is used for string concatenation (as it is in other scripting languages).

So the values of all the individual parameters, as strings, are concatenated and then the resulting string is processed to produce a unique md5 'signature' that cannot be produced by any other string.

Hope this helps clarify your other questions as well.

Regards,

Gil

Ответ
На рассмотрении

Hi -

This sample code is in php.

In php the + operator is used for string concatenation (as it is in other scripting languages).

So the values of all the individual parameters, as strings, are concatenated and then the resulting string is processed to produce a unique md5 'signature' that cannot be produced by any other string.

Hope this helps clarify your other questions as well.

Regards,

Gil

Сервис поддержки клиентов работает на платформе UserEcho