Timeline for Password encrypting tool
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 11, 2018 at 22:14 | comment | added | user233009 |
I did also find something wrong with my code: send can either return -1 (on error) or the number of bytes written. if(someSyscall(args)){/*handle error*/} only works in cases where someSyscall can only return 0 on success. I apparently never had input to sha512sum longer than 128 bytes so I tried writing a very long domain name and password to it and sure enough I got Failed to ...: Success. Thank you for pointing out the if(!value) thing.
|
|
Oct 11, 2018 at 22:00 | comment | added | user233009 | Thank you! So, if I were to remove the flush for "\nPassword for " ..., wouldn't that cause the output to be printed after the write? Write is the direct system call for output, which means that at exit I would see Enter password: (hash)\n\nPassword for (domain name): (bash prompt) | |
Oct 11, 2018 at 21:57 | vote | accept | user233009 | ||
Oct 11, 2018 at 21:05 | history | answered | Toby Speight | CC BY-SA 4.0 |