TheMysteriousX / SNMPv3-Hash-Generator

Apache License 2.0
13 stars 5 forks source link

sros: correct priv hash for sha #5

Open flosch-dev opened 3 years ago

flosch-dev commented 3 years ago

limit aes key to 32 bytes when hashed using sha1

flosch-dev commented 3 years ago

Just want to check if this project is still alive? Also may you update the pip package after committing this PR? Thanks!

nicoduck commented 2 years ago

I'm was facing an issue where this PR helped.

durdin85 commented 1 year ago

Btw. the Priv hash for ESXi is also wrong and shall be truncated in same way as for sros:

def format_esxi(user, Kul_auth, Kul_priv, mode, hash):
    if mode == "priv":
        return f"{user}/{hash(Kul_auth)}/{hash(Kul_priv)[:32]}/{mode}"