qvest-digital / loginsrv

JWT login microservice with plugable backends such as OAuth2, Google, Github, htpasswd, osiam, ..
MIT License
1.92k stars 150 forks source link

Increase default JwtSecret length to enhance security #149

Closed magikstm closed 4 years ago

magikstm commented 4 years ago

Current JwtSecret length is vulnerable to bruteforce being only 32 bytes.

It's length should be increased to at least 512 bit (64 bytes) (same length as default JWT algorithm hash key length).

Ref: https://github.com/tarent/loginsrv/blob/master/login/config.go#L21