Electronic Invoicing System API v1
Developers Guide
×
Menu
Index

2.4.2. HMAC Online Tool

 
Different programming languages have their own implementation of HMAC-SHA512. Feel free to use AI tools or search engines to find sample code implementation in your preferred programming languages.
 
You can confirm that your hashing function that takes two parameters HMAC_SHA512(string data, string secretKey) is meeting EIS API expected output by testing the following.
 
When data is "MRA", Key is "123456" and using SHA512 the output  should be "xludP1OafF422HgSRaKqZiUXaFALv8D+mnBJOWd5vDK7N7T22V+WOTvgIFQ7I1p+S2cIPg3JxuVm4xth+8UQ/Q==" this is the value that would be passed in the header x-eis-message-hash
 
 
Feel free to test using online tools, google search "HMAC-SHA512 Online"
 
 
 
 
 
 
 
 
 
Note that some other online tools display the result as Hex Encoded string (Not base64)