How to create hmac md5 in php?

后端 未结 2 1237
既然无缘
既然无缘 2021-01-03 08:41

I am working with payU credit card systems. But I dont manage. payU tells me that I have to create hmac md5 hashes.

My secret key is : 3~9#[X4^660?ak+]h6%T I want to

2条回答
  •  时光说笑
    2021-01-03 09:39

    You can easily do that using the hash_hmac() function:

    $input = 'foo';
    $output = hash_hmac('md5', $input, $secretKey);
    

    where $secretKey holds a string representation of your key.

提交回复
热议问题