cryptserver: SHA512, base64-encoded encryption server
Server listening for POST requests containing a password parameter, returns SHA512 hash of password in base64 to / path. Server gracefully handles shutdown requests both from SIGINT signals and POST requests to /shutdown with authorized passwords.
Passwords are validated by including a SHA512 hash of them in base 64 in shadow file
For quick testing, angryMonkey is configured to work, out of the box. For security purposes, remove this line from the shadow file and replace with new hashes when done testing
Create new valid password: curl --data "password=<new-valid-password>" http://localhost:<your-port>/ >> ./etc/shadow
Invalid passwords return error
SIGINT (^C)
cryptserver catches and handles (nterrupt signal), gracefully shutting down server