Password Encoder handles the hashing of given passwords.
To be able to create hashed passwords and to get the hashed passwords and statistics about them.
- Golang
- Gorilla Mux
- GoMock
To run tests, enter the following terminal command:
go test
POST /hash
Creates a hash for a given form field password.
GET /hash/{id}
Returns a hash for a given id.
GET /stats
Returns total number of hashed passwords and the average request time to hash each.
POST /shutdown
Invokes graceful shutdown where server stops accepting requests and waits
for all processes to finish before exiting.