post https://api.kudipayment.com/v1/3des/mac
Calculate a Message Authentication Code (MAC) with a 3DES key split into one to three components
Curl request example to calculate a MAC:
curl --request POST \
--url 'https://api.kudipayment.com/v1/3des/mac'\
--header 'accept: application/json'\
--header 'content-type: application/json'\
--header 'x-api-key: PJAqhzZ4Qw2mIC6snt41Z3BroiLYIhLz5CqkMZEk'\
--data '{"keys": ["0123456789ABCDEFFEDCBA9876543210","12121212121212122121212121212121"],"message": "HELLO WORLD"}'
Name | Keys Array |
---|---|
Key | ["0123456789ABCDEFFEDCBA9876543210"] |
Key split into two components | ["0123456789ABCDEFFEDCBA9876543210", "12121212121212122121212121212121"] |
Key split into three components | ["0123456789ABCDEFFEDCBA9876543210", "12121212121212122121212121212121", "18181818181818188181818181818181"] |