Answer the question
In order to leave comments, you need to log in
Why is there an error when calling the hashlib.scrypt function?
I am using python 3.6. hashlib module, hashlib.scrypt function. If you specify the number of iterations
in the parameter n more than 16384 , for example 32768 , then it gives an error:
ValueError: Invalid paramemter combination for n, r, p, maxmem.
hashlib.scrypt(b'pass', salt=salt_bin, n=32768, r=8, p=1, dklen=32).hex()
Answer the question
In order to leave comments, you need to log in
N must be a power of two (Source https://blog.filippo.io/the-scrypt-parameters/)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question