Go Secure

gosecure
provides various functions designed to sit on top of, and compliment
the [Gorilla Toolkit][]. Secure (bcrypt) hashing functions, secure endpoints via
JWT, rate limiters on endpoints, constant time execution, and safe logging of
core HTTP conversations are provided.
Installation
”`shell script
go get -u bitbucket.org/idomdavis/gosecure
## Usage
A simple secure API example can be found under `example/gosecure.go`. You can
use:
```shell script
make example
To run the example on port 7474. Interaction with the API can be performed
using:
”`shell script
curl “http://localhost:7474/login”
-u ‘guest:password’
```shell script
curl "http://localhost:7474/endpoint" \
-H 'Authorization: Bearer ...'
Where the bearer string is the output from the call to login
.