Create salt using SHA256 of site name
This commit is contained in:
parent
87ba1c22e9
commit
d8d6735872
3 changed files with 12 additions and 20 deletions
4
main.c
4
main.c
|
@ -91,8 +91,8 @@ main(int argc, char *argv[])
|
|||
exit(1);
|
||||
|
||||
uint8_t dk[64];
|
||||
rc = genpass(dk, (uint8_t *)passwd,
|
||||
strlen(passwd), maxmem, megaops);
|
||||
rc = genpass(dk, (uint8_t *)passwd, strlen(passwd), (void*) *argv,
|
||||
maxmem, megaops);
|
||||
|
||||
/* Zero and free the password. */
|
||||
memset(passwd, 0, strlen(passwd));
|
||||
|
|
Reference in a new issue