← index #8017Issue #577
Related · high · value 1.150
QUERY · ISSUE

SHA512 and hashlib port

openby willianpaixaoopened 2021-11-20updated 2024-10-01
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'

closedby abuvanthopened 2022-11-16updated 2023-07-20

hashlib library has no sha512

5 comments
jimmo · 2022-11-16

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.

abuvanth · 2023-01-12

<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">

abuvanth · 2023-01-12

MicroPython v1.19.1-616-g5987130af-dirty

jimmo · 2023-01-16

@abuvanth It sounds like you have the built-in hashlib rather than the one from micropython-lib (which adds SHA512).

dpgeorge · 2023-07-20

This should hopefully be addressed by da5ddfc6e21e8b2d680a74826bcf2652aa8e75ee. If not feel free to reopen with more details about the error.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied