D
D
DTPlayer2021-11-14 20:43:10
Python
DTPlayer, 2021-11-14 20:43:10

What is the correct way to make a sha256 hash?

$data = [
        'shopId'=>777,
        'nonce'=>time(),
    ];
    ksort($data);
    $sign = hash_hmac('sha256', implode('|', $data), $api_key);
    $data['signature'] = $sign;

How to write such code in python?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alan Gibizov, 2021-11-15
@phaggi

This may help you.
If it doesn't help, then go to freelance.habr.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question