Create salt using SHA256 of site name

This commit is contained in:
Chris Oei 2012-09-02 22:08:52 -07:00
parent 87ba1c22e9
commit d8d6735872
3 changed files with 12 additions and 20 deletions

4
main.c
View file

@ -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));