rfc1036 / whois

Intelligent WHOIS client
GNU General Public License v2.0
497 stars 117 forks source link

mkspasswd scrypt method fails when specifying number of iterations #148

Closed Krasauskas closed 1 year ago

Krasauskas commented 1 year ago
mkpasswd -m scrypt -R 16384
crypt_gensalt: Invalid argument
# mkpasswd --version
mkpasswd 5.5.13

Ubuntu 22.04

rfc1036 commented 1 year ago

Looks like you have jumped to conclusions: it fails when you specify an invalid number of iterations. The valid parameters for all algorithms are documented in crypt(5).

E.g.:

echo foo | mkpasswd -s -m scrypt -R 11

Krasauskas commented 1 year ago

Thanks, you're right!. The error message lead me nowhere, hence ending up here :) Sorry!