Skip to content

thinkterry/hash-password-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hash password service

HTTP service that hashes passwords using SHA512 and Base64 encoding

To begin, start the server (requires Go 1.8):

$ go run hash_password.go

Requests may then be made to http://localhost:8080. One of two requests is permitted:

  1. Hash password
  2. Shut down server

A delay of five seconds is applied to each response.

Hash password

Hash a password via an HTTP POST to /, e.g.

$ curl -s --data "password=angryMonkey" http:/localhost:8080/
ZEHhWB65gUlzdVwtDQArEyx+KVLzp/aTaRaPlBzYRIFj6vjFdqEb0Q5B8zVKCZ0vKbZPZklJz0Fd7su2A+gf7Q==

Shut down server

Shut down the server via an HTTP POST to /shutdown, i.e.

$ curl -s -X POST http:/localhost:8080/shutdown

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages