I am using Django to make an e-shop. I am trying to add online payment with http://liqpay.com/. They have examples in PHP: https://liqpay.com/?do=pages&p=cnb12.
In the example they use PHP's shal($data, 1)
flag 1 (then the sha1 digest is instead returned in raw binary format with a length of 20).
But the Python function hashlib.sha1()
, does not have this flag.
Is there some analog in Python?