Fixed misconfigured spec
Added token encryption, still needs better tests.