Closed c-po closed 4 years ago
Thanks for the info - this should be fixed, it was a couple of logic errors. I'll throw the updated version on PyPI later.
Glad you've found it useful.
Yes - it was very much usefull in understanding the SNMPv3 hash voodoo. Thanks for publishing.
First of all I want to thank you for this implementation.
I noticed then when using your library and comparing the generated output to the examples in the RFC the MD5 implementation seems to be off. I can not generate the expected key: https://tools.ietf.org/html/rfc3414#appendix-A.3.1
It should be
9faf3283884e92834ebc9847d8edd963
but it rather returns the SHA1 value askdf()
ignoes the requested hash -> https://github.com/TheMysteriousX/SNMPv3-Hash-Generator/blob/master/snmpv3_hashgen/hashgen.py#L27Also specifying --hash md5 on the command-line will render: