Our new Community environment is going to be launched soon!
This means that you will be redirected to the new environment automatically, where you can sign-in, look up - and post topics again. Please note that not all topics will be transferred, so it might occur that you can’t find the topic you were looking for.
How to convert a hexadecimal string to bytes, that are used to generate a signature by the HMACSHA256 class?
We are using a webservice which requires a signature (generated HMACSHA256 hash), based on a message and private key combination. This private key is provided in a hexadecimal string and needs te be converted to be used in the hash.
Below a representation of simiral functions in .NET and PHP;
.NET:
PHP: hex2bin($private_key)
How to convert a hexadecimal string to bytes, that are used to generate a signature by the HMACSHA256 class?
We are using a webservice which requires a signature (generated HMACSHA256 hash), based on a message and private key combination. This private key is provided in a hexadecimal string and needs te be converted to be used in the hash.
Below a representation of simiral functions in .NET and PHP;
Login to reply