QUERY · ISSUE
SHA512 and hashlib port
enhancement
At the moment, Micropython supports SHA1 and SHA256.
I would like to suggest addition of more algorithms, in specific SHA512.
It's already implemented in micropython-lib and of course at cpython itself.
CANDIDATE · ISSUE
AttributeError: 'module' object has no attribute 'sha512'
hashlib library has no sha512
Can you please provide more information. Which library are you using (a short code example showing how you see the problem), how did you install it, what version of micropython, etc.
There were some fixes relating to this earlier this year but need to see what you're doing first.
<img width="810" alt="Screenshot 2023-01-12 at 10 12 16 PM" src="https://user-images.githubusercontent.com/20999104/212127823-2c6db0ec-6319-4fd7-9301-2ec97a40417d.png">
MicroPython v1.19.1-616-g5987130af-dirty
@abuvanth It sounds like you have the built-in hashlib rather than the one from micropython-lib (which adds SHA512).
This should hopefully be addressed by da5ddfc6e21e8b2d680a74826bcf2652aa8e75ee. If not feel free to reopen with more details about the error.