Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print base64.b64encode(hmac.new("key".encode("ascii"),"hello".encode("ascii"), hashlib.sha512).digest())
- <?php
- echo base64_encode(hash_hmac('sha512', "hello", "key"));
- ?>
- if i use hexdigest() method in python in place of digest() method then hash result same, but i need to use digest() method, so is there any equivalent method in php. so i can get same hash result.
- Thanks in advance.
Add Comment
Please, Sign In to add comment