Secure cookie library in Go from scratch