According to crypt.h:
extern char *crypt_gensalt (const char *__prefix, unsigned long __count,
const char *__rbytes, int __nrbytes)
I understand that __prefix
is encryption type (i.e. $2a$, $5$, $6$,...). My guess is __rbyte
is the passphrase and __nrbytes
is the size of passphrase.
How about __count
? What should I pass into it? I'm going to use $6$
prefix.